Skip to content

Commit

Permalink
Another Cache-Sweeping efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
distler committed Sep 21, 2011
1 parent b6c0ffa commit 4b09e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/cache_sweeping_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ def expire_cached_page(web, page_name)
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

Expand Down

0 comments on commit 4b09e03

Please sign in to comment.