Is it possible to expire cache items (page, action, or fragment) from
within a model? I know that sweepers let you trigger cache expiration
on model changes, but they have to be activated in the controller.
I want to cache some things that can be potentially modified from many
different controllers. It seems like it would be too easy to forget to
activate the sweeper from some controller and then end up with a stale
Expiring things by using just a plain after_save hook in the model seems
like it would be much safer to me, but I haven’t found a way to get to
the expire_ calls from within a model.
Is this possible? Or am I overlooking a reason why things shouldn’t be
done this way?