From db5379508e76c62c68fb46935af468cbf6bd3de8 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 28 Oct 2015 15:11:36 -0400 Subject: [PATCH] FIX: Don't show an anonymous cache if there is a flash --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e8376b6a281..efea5b2f652 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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