]> git.openstreetmap.org Git - rails.git/blob - config/initializers/memcached.rb
Fix bad database query for RSS feeds of trace file tags
[rails.git] / config / initializers / memcached.rb
1 if defined?(PhusionPassenger) and defined?(MEMCACHE_SERVERS)
2   PhusionPassenger.on_event(:starting_worker_process) do |forked|
3     if forked
4       MEMCACHE = MEMCACHE.clone
5       RAILS_CACHE = ActiveSupport::Cache::MemCacheStore.new(MEMCACHE, :compress => true)
6       ActionController::Base.cache_store = RAILS_CACHE
7     end
8   end
9 end