1
0
Fork 0
forked from OpenNeo/impress

oops: sweep localized item link caches

This commit is contained in:
Emi Matchu 2013-06-07 13:26:51 -07:00
parent 2501cb5667
commit 0d348d6971

View file

@ -19,7 +19,7 @@ class ItemObserver < ActionController::Caching::Sweeper
private private
def expire_cache_for(item) def expire_cache_for(item)
expire_fragment("items/#{item.id}#item_link_partial") expire_fragment_in_all_locales("items/#{item.id}#item_link_partial")
expire_fragment_in_all_locales("items/#{item.id} header") expire_fragment_in_all_locales("items/#{item.id} header")
expire_fragment_in_all_locales("items/#{item.id} info") expire_fragment_in_all_locales("items/#{item.id} info")
end end