ref: master
config/initializers/passenger.rb
1 2 3 4 5 6 7 8 9 |
if defined? PhusionPassenger # from http://russbrooks.com/2010/10/20/rails-cache-memcache-on-passenger-with-smart-spawning PhusionPassenger.on_event :starting_worker_process do |forked| if forked Rails.cache.instance_variable_get(:@data).reset if Rails.cache.class.name == 'ActiveSupport::Cache::MemCacheStore' end end end |