Expiring cache outside controller (e.g. in rake tasks)


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)


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs