Memcache reset on rails 2.3 with preload

Troex Nevelin list at mrtech.ru
Wed Mar 23 14:25:58 EDT 2011


On 03/11/2011 01:01 AM, Lawrence Pit wrote:
> I use:
>
> if Rails.cache.is_a?(ActiveSupport::Cache::MemCacheStore)
> Rails.cache.instance_variable_get(:@data).reset
> end

Thanks a lot, that is exactly what I needed


More information about the mongrel-unicorn mailing list