]> git.openstreetmap.org Git - rails.git/blob - config/initializers/memcached.rb
Get returning of bugs as GPX files working
[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::CompressedMemCacheStore.new(MEMCACHE)
6       ActionController::Base.cache_store = RAILS_CACHE
7     end
8   end
9 end