Displaying 1 result from an estimated 1 matches for "cachedestroy".
Did you mean:
cachedestroyer
2007 Oct 21
4
Making 'expire_fragment' available to a model?
I noticed a lot of repetition across different Sweeper models in my
app expiring the same fragments and so have been trying to move all
the expire_fragment calls into another model which the sweepers can
then use but it''s not working as I''d hoped..
I''ve created a CacheDestroyer model and want to be able to call
something to the effect of: CacheDestroyer.clear_all_page_relations
but I''m struggling to find how to make the "expire_fragment" method
available to this model.
I''ve tried putting "include ActionController::Caching::Fragments&quo...