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

@ -20,6 +20,7 @@ ActionController::Routing::Routes.draw do |map|
connect_to_web map, ':web/remove_orphaned_pages_in_category', :controller => 'admin', :action => 'remove_orphaned_pages_in_category'
connect_to_web map, ':web/file/delete/:id', :controller => 'file', :action => 'delete', :requirements => {:id => /[-._\w]+/}, :id => nil
connect_to_web map, ':web/files/:id', :controller => 'file', :action => 'file', :requirements => {:id => /[-._\w]+/}, :id => nil
connect_to_web map, ':web/file_list/:sort_order', :controller => 'wiki', :action => 'file_list', :sort_order => nil
connect_to_web map, ':web/import/:id', :controller => 'file', :action => 'import'
connect_to_web map, ':web/login', :controller => 'wiki', :action => 'login'
connect_to_web map, ':web/web_list', :controller => 'wiki', :action => 'web_list'