From: Tom Hughes Date: Thu, 22 Jul 2010 18:54:46 +0000 (+0100) Subject: We can cache the trace list for logged in users now X-Git-Tag: live~6274^2~2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f30dcd1a629449c19bc75fb3e6baa2a58f57d3c5?hp=af70363d029202b53c5813e06117dfdc1208cccd We can cache the trace list for logged in users now --- diff --git a/app/controllers/trace_controller.rb b/app/controllers/trace_controller.rb index 0ec033ae7..abd59aeb2 100644 --- a/app/controllers/trace_controller.rb +++ b/app/controllers/trace_controller.rb @@ -15,8 +15,7 @@ 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, :unless => :logged_in?, :layout => false - caches_action :view, :layout => false + caches_action :list, :view, :layout => false caches_action :georss, :layout => true cache_sweeper :trace_sweeper, :only => [:create, :edit, :delete, :api_create], :unless => OSM_STATUS == :database_offline cache_sweeper :tracetag_sweeper, :only => [:create, :edit, :delete, :api_create], :unless => OSM_STATUS == :database_offline