Add user_signed_in? to cache key for styles (#2498)

This commit is contained in:
Ben Halpern 2019-04-19 12:57:40 -04:00 committed by GitHub
parent 9007b80356
commit 56c55d047d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
<% cache "base_inline_styles_#{@story_show}_#{@article_index}_#{@home_page}_#{@article_show}_#{view_class}_#{@notifications_index}_#{core_pages?}_#{@tags_index}_#{ApplicationConfig['DEPLOYMENT_SIGNATURE']}x_xs__", expires_in: 8.hours do %>
<% cache "base_inline_styles_#{@story_show}_#{@article_index}_#{@home_page}_#{@article_show}_#{view_class}_#{@notifications_index}_#{core_pages?}_#{@tags_index}_#{@reading_list_items_index}_#{ApplicationConfig['DEPLOYMENT_SIGNATURE']}_#{user_signed_in?}", expires_in: 8.hours do %>
<% if @story_show %>
<style>
<% Rails.application.config.assets.compile = true %>