Cache file_list Action

Also, slightly smarter cache expiry, upon uploading/deleting a file.
This commit is contained in:
Jacques Distler 2009-01-10 22:33:30 -06:00
parent 5c20871ec4
commit b9f5c32755
5 changed files with 17 additions and 5 deletions

View file

@ -16,9 +16,13 @@ module CacheSweepingHelper
end
end
%w(authors atom_with_content atom_with_headlines).each do |action|
%w(authors atom_with_content atom_with_headlines file_list).each do |action|
expire_action :controller => 'wiki', :web => web.address, :action => action
end
%w(file_name created_at).each do |sort_order|
expire_action :controller => 'wiki', :web => web.address, :action => 'file_list', :sort_order => sort_order
end
end
end