- cache_sweeper :trace_sweeper, :only => [:create, :edit, :delete, :api_create]
- cache_sweeper :tracetag_sweeper, :only => [:create, :edit, :delete, :api_create]
+ 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