In order to get a cache sweeper to actually do anything when it is triggered, it must be called from a controller, and that controller must be instantiated though a http request.
This is what I have learned from trying to expire fragment cache from background scripts in Ruby om Rails. It simply is not possible. [...]
Entries from juni 2008
Fragment cache expiry from background jobs is a hot mess
juni 11th, 2008 · Comments
Tags: Ruby on Rails · cache · rant · sweepers
