Deal with clients that don't send an HTTP_ACCEPT header.

Cache S5, TeX and Print views.
Temporary hack: don't cache list and recently_revised pages.
This commit is contained in:
Jacques Distler 2007-03-08 21:57:21 -06:00
parent d74116dc67
commit a656772622
5 changed files with 10 additions and 9 deletions

View file

@ -2,7 +2,7 @@ module CacheSweepingHelper
def expire_cached_page(web, page_name)
expire_action :controller => 'wiki', :web => web.address,
:action => %w(show published), :id => page_name
:action => %w(show published s5 tex print), :id => page_name
expire_action :controller => 'wiki', :web => web.address,
:action => %w(show published), :id => page_name, :mode => 'diff'
end
@ -20,4 +20,4 @@ module CacheSweepingHelper
expire_fragment :controller => 'wiki', :web => web.address, :action => %w(rss_with_headlines rss_with_content)
end
end
end