Commit dbc6d527b78d736cf114e52109335e280aca4809

Authored by Braulio Bhavamitra
1 parent 0dd4a244

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 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
... ...