I need to expire cached fragments from outside sweepers or
controllers: I have a rake task that calls a method inside a module in
the /lib directory. This task will be called at a scheduled time by a
After method execution I would like to expire some cached fragments.
I’ve just tried to import ActionController::Caching and
ActionController::Caching::Fragment, but without success.
Do you have any suggestions?