Expire Caches for Redirected Links

[[!redirect foo]] should expire all pages which reference "foo".
Sounds simple, but this was a really gnarly bug to fix.
This commit is contained in:
Jacques Distler 2009-06-05 00:39:12 -05:00
parent ea6b04271b
commit 0943b7e510
5 changed files with 15 additions and 18 deletions

View file

@ -524,6 +524,7 @@ END_THM
end
def test_revisions_diff
Thread.current[:page_redirects] = { @page.name => []}
Revision.create(:page => @page, :content => 'What a blue and lovely morning',
:author => Author.new('DavidHeinemeierHansson'), :revised_at => Time.now)
Revision.create(:page => @page, :content => 'What a red and lovely morning today',