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