]> git.openstreetmap.org Git - rails.git/commitdiff
We can cache the trace list for logged in users now
authorTom Hughes <tom@compton.nu>
Thu, 22 Jul 2010 18:54:46 +0000 (19:54 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 22 Jul 2010 19:47:35 +0000 (20:47 +0100)
app/controllers/trace_controller.rb

index 0ec033ae794f8549388b9ce71cdd3cc9625c082b..abd59aeb26bfddaa29ed4f6ce2d747d28ffee335 100644 (file)
@@ -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]
 
   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
   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