Permalink
Browse files

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

…in logged in.
  • Loading branch information...
1 parent d740d90 commit f265fadc2a2d011eb37fcb929fb3a2852c92b296 @mhaylock mhaylock committed Apr 6, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 core/app/views/shared/_menu.html.erb
  2. +1 −1 pages/app/views/admin/pages/index.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.
@@ -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 %>

0 comments on commit f265fad

Please sign in to comment.