]> git.openstreetmap.org Git - rails.git/commitdiff
CompressedMemCacheStore has been replaced by MemCacheStore
authorTom Hughes <tom@compton.nu>
Sun, 19 Feb 2012 10:43:37 +0000 (10:43 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 19 Feb 2012 10:44:36 +0000 (10:44 +0000)
config/initializers/memcached.rb

index 03066a8abec965d27a1f3260d0f0cd9371bb1660..7af419112fe316be04ba58d78f636b546cd046cd 100644 (file)
@@ -2,7 +2,7 @@ if defined?(PhusionPassenger) and defined?(MEMCACHE_SERVERS)
   PhusionPassenger.on_event(:starting_worker_process) do |forked|
     if forked
       MEMCACHE = MEMCACHE.clone
-      RAILS_CACHE = ActiveSupport::Cache::CompressedMemCacheStore.new(MEMCACHE)
+      RAILS_CACHE = ActiveSupport::Cache::MemCacheStore.new(MEMCACHE, :compress => true)
       ActionController::Base.cache_store = RAILS_CACHE
     end
   end