Cache Sweeping

Expire cached revisions of deleted pages.
Tweak the appearance of "history" page a bit.
This commit is contained in:
Jacques Distler 2009-03-31 23:37:21 -05:00
parent 69bfc1028b
commit 98918954e0
4 changed files with 16 additions and 1 deletions

View file

@ -25,6 +25,7 @@ class WebSweeper < ActionController::Caching::Sweeper
elsif record.is_a?(Page)
expire_cached_page(record.web, record.name)
expire_cached_summary_pages(record.web)
expire_cached_revisions(record)
else
expire_cached_summary_pages(record.web)
end