Commit 3368e592e846c1405d05a66e4d838f517b0f0a85
Exists in
master
and in
27 other branches
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/initializers/passenger.rb
| ... | ... | @@ -3,7 +3,7 @@ if defined? PhusionPassenger |
| 3 | 3 | # from http://russbrooks.com/2010/10/20/rails-cache-memcache-on-passenger-with-smart-spawning |
| 4 | 4 | PhusionPassenger.on_event :starting_worker_process do |forked| |
| 5 | 5 | if forked |
| 6 | - Rails.cache.instance_variable_get(:@data).reset if Rails.cache.class == ActiveSupport::Cache::MemCacheStore | |
| 6 | + Rails.cache.instance_variable_get(:@data).reset if Rails.cache.class.name == 'ActiveSupport::Cache::MemCacheStore' | |
| 7 | 7 | end |
| 8 | 8 | end |
| 9 | 9 | end | ... | ... |