My application uses the usual caching utility (a subclass of ActionController :: Caching :: Sweeper) to expire the cache (essentially fragments).
Now, cache expiration blocks the application for several seconds, which negatively affects performance, as perceived by the client.
It would be great if I asynchronously terminated the cache, for example, using delayed_job (the application is currently hosted on the hero).
Unfortunately, just adding handle_synchronously to the cache expiration function in the sweeper does not work.
Is it possible that cache fragments expired asynchronously with delayed_job? If so, what are the best methods for doing this?
source
share