1 if defined?(PhusionPassenger) and defined?(MEMCACHE_SERVERS)
2 PhusionPassenger.on_event(:starting_worker_process) do |forked|
4 MEMCACHE = MEMCACHE.clone
5 RAILS_CACHE = ActiveSupport::Cache::CompressedMemCacheStore.new(MEMCACHE)
6 ActionController::Base.cache_store = RAILS_CACHE