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:
parent
ea6b04271b
commit
0943b7e510
5 changed files with 15 additions and 18 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue