Ruby Forum Ruby on Rails > expiring cache outside controller (e.g. in rake tasks)

Posted by Uros Jurglic (jurglic)
on 11.04.2008 19:46
(Received via mailing list)
Hello,

I need to expire cache outside controller, in my rake tasks. I want to
use standard methods expire_fragment,etc.. but I can't manage to use
them outside controllers. I tried including
ActiveController::Caching::Actions but didn't work.

Anyone has any solution? I'm losing my head how to do it... (besides
manually deleting files)


Thanks
Uros