All WikiReference methods now limit results to the current web.
Category lists are now restricted to the current web.
This commit is contained in:
parent
626c135d1e
commit
12743280fb
5 changed files with 33 additions and 27 deletions
|
@ -22,7 +22,7 @@ class RevisionSweeper < ActionController::Caching::Sweeper
|
|||
|
||||
def expire_caches(page)
|
||||
expire_cached_summary_pages(page.web)
|
||||
pages_to_expire = ([page.name] + WikiReference.pages_that_reference(page.name)).uniq
|
||||
pages_to_expire = ([page.name] + WikiReference.pages_that_reference(page.web, page.name)).uniq
|
||||
pages_to_expire.each { |page_name| expire_cached_page(page.web, page_name) }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue