From 0d348d697146eb35bba55dfff898cf5396a735e9 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 7 Jun 2013 13:26:51 -0700 Subject: [PATCH] oops: sweep localized item link caches --- app/models/item_observer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/item_observer.rb b/app/models/item_observer.rb index 167581ca..820a817a 100644 --- a/app/models/item_observer.rb +++ b/app/models/item_observer.rb @@ -19,7 +19,7 @@ class ItemObserver < ActionController::Caching::Sweeper private 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} info") end