Another Cache-Sweeping efficiency
This commit is contained in:
parent
b6c0ffa0d5
commit
4b09e0322f
|
@ -8,11 +8,11 @@ module CacheSweepingHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def expire_cached_summary_pages(web)
|
def expire_cached_summary_pages(web)
|
||||||
categories = WikiReference.all(:conditions => "link_type = 'C'")
|
categories = WikiReference.list_categories(web)
|
||||||
%w(recently_revised list).each do |action|
|
%w(recently_revised list).each do |action|
|
||||||
expire_action :controller => 'wiki', :web => web.address, :action => action
|
expire_action :controller => 'wiki', :web => web.address, :action => action
|
||||||
categories.each do |category|
|
categories.each do |category|
|
||||||
expire_action :controller => 'wiki', :web => web.address, :action => action, :category => category.referenced_name
|
expire_action :controller => 'wiki', :web => web.address, :action => action, :category => category
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue