FIX: Don't show an anonymous cache if there is a flash

This commit is contained in:
Robin Ward 2015-10-28 15:11:36 -04:00
parent bb79e6aff7
commit db5379508e

View file

@ -243,7 +243,7 @@ class ApplicationController < ActionController::Base
end
def can_cache_content?
!current_user.present?
current_user.blank? && flash[:authentication_data].blank?
end
# Our custom cache method