Commit 3cafda053c04c324071f21b5386c9b6919843482
Exists in
master
and in
21 other branches
Merge branch 'fix-initializer-passenger-crash' into 'master'
Fix passenger initializer crash when using memcache store See merge request !428
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 | ... | ... |