Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Re-enable cache when logged in, this avoids slowdown of site when adm…

…in logged in.
  • Loading branch information...
commit f265fadc2a2d011eb37fcb929fb3a2852c92b296 1 parent d740d90
@mhaylock mhaylock authored
View
2  core/app/views/shared/_menu.html.erb
@@ -4,7 +4,7 @@
hide_children = RefinerySetting.find_or_set(:menu_hide_children, false) if hide_children.nil?
# Select top menu items unless 'roots' is supplied.
collection ||= @menu_pages
- caching = (cache_menu ||= RefinerySetting.find_or_set(:cache_menu, false)) && !user_signed_in?
+ caching = (cache_menu ||= RefinerySetting.find_or_set(:cache_menu, false))
cache_if(caching, [Refinery.base_cache_key, "pages_menus", dom_id, Globalize.locale, cache_path ||= request.path].join('_')) do
if (roots ||= collection.select{|p| p.parent_id.nil?}).present?
# In order to match items that aren't shown in menu and highlight their associations.
View
2  pages/app/views/admin/pages/index.html.erb
@@ -1,5 +1,5 @@
<section id='records' class='tree'>
- <% caching = RefinerySetting.find_or_set(:cache_pages_backend, false) && !user_signed_in? %>
+ <% caching = RefinerySetting.find_or_set(:cache_pages_backend, false) %>
<% cache_if(caching, [Refinery.base_cache_key, "pages_backend", Globalize.locale].join('_')) do %>
<%= render :partial => 'records' %>
<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.