Commit dbc6d527b78d736cf114e52109335e280aca4809
1 parent
0dd4a244
Exists in
master
and in
22 other branches
Fix passenger class load to not depend on memcache gem
Use class name as string instead of constant
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,7 +3,7 @@ if defined? PhusionPassenger | ||
| 3 | # from http://russbrooks.com/2010/10/20/rails-cache-memcache-on-passenger-with-smart-spawning | 3 | # from http://russbrooks.com/2010/10/20/rails-cache-memcache-on-passenger-with-smart-spawning |
| 4 | PhusionPassenger.on_event :starting_worker_process do |forked| | 4 | PhusionPassenger.on_event :starting_worker_process do |forked| |
| 5 | if forked | 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 | end | 7 | end |
| 8 | end | 8 | end |
| 9 | end | 9 | end |