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

@ -8,7 +8,7 @@ class WikiController < ApplicationController
before_filter :load_page
before_filter :dnsbl_check, :only => [:edit, :new, :save, :export_html, :export_markup]
caches_action :show, :published, :authors, :tex, :s5, :print, :recently_revised, :list,
caches_action :show, :published, :authors, :tex, :s5, :print, :recently_revised, :list, :file_list,
:atom_with_content, :atom_with_headlines, :if => Proc.new { |c| c.send(:do_caching?) }
cache_sweeper :revision_sweeper