Don't cache the trace list for logged in users.
This commit is contained in:
parent
e29e49dc7c
commit
f5777a881f
2 changed files with 8 additions and 1 deletions
|
@ -244,6 +244,12 @@ class ApplicationController < ActionController::Base
|
|||
expire_fragment(Regexp.new(Regexp.escape(path) + "\\..*"))
|
||||
end
|
||||
|
||||
##
|
||||
# is the requestor logged in?
|
||||
def logged_in?
|
||||
!@user.nil?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# extract authorisation credentials from headers, returns user = nil if none
|
||||
|
|
|
@ -15,7 +15,8 @@ class TraceController < ApplicationController
|
|||
before_filter :offline_redirect, :only => [:create, :edit, :delete, :data, :api_data, :api_create]
|
||||
around_filter :api_call_handle_error, :only => [:api_details, :api_data, :api_create]
|
||||
|
||||
caches_action :list, :view, :layout => false
|
||||
caches_action :list, :unless => :logged_in?, :layout => false
|
||||
caches_action :view, :layout => false
|
||||
caches_action :georss, :layout => true
|
||||
cache_sweeper :trace_sweeper, :only => [:create, :edit, :delete, :api_create]
|
||||
cache_sweeper :tracetag_sweeper, :only => [:create, :edit, :delete, :api_create]
|
||||
|
|
Loading…
Add table
Reference in a new issue