search for: clear_all_page_relations

Displaying 1 result from an estimated 1 matches for "clear_all_page_relations".

2007 Oct 21
4
Making 'expire_fragment' available to a model?
...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" in the CacheDestroyer model but it doesn''t seem to be working (undefined method `expire_frag...