|PhusionPassenger.on_event(:starting_worker_process) do |forked||
|Rails.cache.instance_variable_get(:@data).reset if Rails.cache.class == ActiveSupport::Cache::MemCacheStore|
Hmm I'm not too sure of the specific syntax for Rails 3... but I'm sure the idea is similar.
As for where to put it... perhaps in an
Sorry... I haven't upgraded to Rails 3 yet...