mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Don't show an anonymous cache if there is a flash
This commit is contained in:
parent
bb79e6aff7
commit
db5379508e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue