Hm...doesn't work (from the Heroku console at least). I get this error: MemCache::MemCacheError: flush_all not supported
I got the same result trying CACHE.flush_all, which I tried earlier. But this is kind of interesting--I added some sweeper classes for a few of my models to fix the initial problem. After I pushed to Heroku, the bad cached data went away, but *just on those pages with the new sweepers*. I have one other page with old cached data, and it's still there. So the whole cache wasn't cleared, and it seems like the sweepers were run when I deployed. But I have no idea why that would happen! So my problem is partially solved, but I'd really like a way to flush the cache from the console (or a built-in command for the 'heroku' tool would be even better). And I'd really like to know if/why my sweepers were run on deployment--is that some undocumented Heroku feature? On Jan 23, 5:44 pm, Keenan Brock <[email protected]> wrote: > Hi, > > You can try > ActionController::Base.cache_store.clear > > That is assuming that you have assigned your memcache to the cache_store. > > --Keenan > > On Jan 23, 2010, at 5:08 PM, walker wrote: > > > Is there a way to flush the memcached cache for your app? I have some > > bad page data (my own fault, was playing around with some stuff) and > > would like to just clear everything out. > > > Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Heroku" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/heroku?hl=en. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
