diff --git a/app/controllers/web_sweeper.rb b/app/controllers/web_sweeper.rb index 38e8f3da..b9731cd1 100644 --- a/app/controllers/web_sweeper.rb +++ b/app/controllers/web_sweeper.rb @@ -11,4 +11,8 @@ class WebSweeper < ActionController::Caching::Sweeper web.pages.each { |page| expire_cached_page(web, page.name) } expire_cached_summary_pages(web) end + + def after_remove_orphaned_pages(web) + expire_cached_summary_pages(web) + end end diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index bb50a9c5..f4b5f974 100644 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -410,7 +410,7 @@ class WikiController < ApplicationController def remote_ip ip = request.remote_ip logger.info(ip) - ip.gsub!(Regexp.union(Resolv::IPv4::Regex, Resolv::IPv6::Regex), '\0') || 'bogus address' + ip.dup.gsub!(Regexp.union(Resolv::IPv4::Regex, Resolv::IPv6::Regex), '\0') || 'bogus address' end def render_atom(hide_description = false, limit = 15) diff --git a/app/views/wiki/list.rhtml b/app/views/wiki/list.rhtml index a4b8d209..e2da3425 100644 --- a/app/views/wiki/list.rhtml +++ b/app/views/wiki/list.rhtml @@ -13,7 +13,7 @@ @@ -36,7 +36,7 @@