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
|
@ -12,6 +12,9 @@
|
|||
<% form_tag({ :action => 'save', :web => @web.address, :id => @page.name },
|
||||
{ 'id' => 'editForm', 'method' => 'post', 'onsubmit' => 'cleanAuthorName()',
|
||||
'accept-charset' => 'utf-8' }) do %>
|
||||
<div>
|
||||
<textarea name="content" id="content" rows="24" cols="60"><%= h(flash[:content] ||
|
||||
((params['content'] && params['content'].is_utf8?) ? params['content'] : @page.content).purify) %></textarea>
|
||||
<% if @page_name != 'HomePage' -%>
|
||||
<p>
|
||||
<%= check_box_tag :alter_title, value = "1", checked=false,
|
||||
|
@ -22,9 +25,6 @@
|
|||
<% else -%>
|
||||
<%= hidden_field_tag 'new_name', @page_name %>
|
||||
<% end%>
|
||||
<div>
|
||||
<textarea name="content" id="content" rows="24" cols="60"><%= h(flash[:content] ||
|
||||
((params['content'] && params['content'].is_utf8?) ? params['content'] : @page.content).purify) %></textarea>
|
||||
<div id="editFormButtons">
|
||||
<input type="submit" value="Submit" accesskey="s"/> as
|
||||
<%= text_field_tag :author, h(@author.purify),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue