forked from OpenNeo/impress
oops: sweep localized item link caches
This commit is contained in:
parent
2501cb5667
commit
0d348d6971
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue