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

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

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