Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki

master
Jacques Distler 2011-09-21 13:39:21 -05:00
commit 0f4a76d895
1 changed files with 2 additions and 2 deletions

View File

@ -8,11 +8,11 @@ module CacheSweepingHelper
end
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|
expire_action :controller => 'wiki', :web => web.address, :action => action
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