Forum: Ruby on Rails How to reset Rails.cache servers? Rails.cache.reset is undefinied

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Art C. (Guest)
on 2009-05-04 22:05
(Received via mailing list)
I'm trying to get memcached working for my rails app that's running
under passenger.  Apparently we need to check if passenger forked
memcached, and if so we need to establish a new connection using a
reset function.

I've seen people install cache_fu and they're able to call
CACHE.reset.  But for the built in memcache-client in Rails 2.x
there's no such Rails.cache.reset.

What is the equivalent to this?  Do I need to install cache_fu?

everything works great on my dev machine with memcached running with
pharrington (Guest)
on 2009-05-05 20:37
(Received via mailing list)
With Rails 2.3.2, use Rails.cache.clear

I'm not sure about older versions, though.
pharrington (Guest)
on 2009-05-05 20:39
(Received via mailing list)
Are you looking for Rails.cache.clear ?
This topic is locked and can not be replied to.