Cache History Pages
Implement caching for the "history" pages introduced in Revision 377.
This commit is contained in:
parent
d5a65e6ac8
commit
73a7ceef03
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ module CacheSweepingHelper
|
|||
|
||||
def expire_cached_page(web, page_name)
|
||||
expire_action :controller => 'wiki', :web => web.address,
|
||||
:action => %w(show published s5 tex print), :id => page_name
|
||||
:action => %w(show published s5 tex print history), :id => page_name
|
||||
expire_action :controller => 'wiki', :web => web.address,
|
||||
:action => %w(show published), :id => page_name, :mode => 'diff'
|
||||
end
|
||||
|
|
|
@ -9,7 +9,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, :file_list,
|
||||
:atom_with_content, :atom_with_headlines, :if => Proc.new { |c| c.send(:do_caching?) }
|
||||
:history, :atom_with_content, :atom_with_headlines, :if => Proc.new { |c| c.send(:do_caching?) }
|
||||
cache_sweeper :revision_sweeper
|
||||
|
||||
layout 'default', :except => [:atom_with_content, :atom_with_headlines, :atom, :tex, :s5, :export_html]
|
||||
|
|
Loading…
Reference in a new issue