mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 21:31:04 +08:00
FIX: Don't show an anonymous cache if there is a flash
This commit is contained in:
@ -243,7 +243,7 @@ class ApplicationController < ActionController::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
def can_cache_content?
|
def can_cache_content?
|
||||||
!current_user.present?
|
current_user.blank? && flash[:authentication_data].blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Our custom cache method
|
# Our custom cache method
|
||||||
|
Reference in New Issue
Block a user