app/helpers/scrivito_helper.rb in scrivito_sdk-1.3.1 vs app/helpers/scrivito_helper.rb in scrivito_sdk-1.4.0.rc1
- old
+ new
@@ -439,8 +439,8 @@
# cache. The options are passed to the +cache+ helper of Rails. See the Rails
# {http://api.rubyonrails.org/classes/ActionView/Helpers/CacheHelper.html#method-i-cache documentation}
# for details.
def scrivito_cache(key, options=nil, &block)
workspace = Scrivito::Workspace.current
- cache_if(workspace.published?, [workspace.cache_key, key], options, &block)
+ cache_if(workspace.published? && !scrivito_user, [workspace.cache_key, key], options, &block)
end
end