Another Bug-fix and some tests
Man, but this needs more tests ... !
This commit is contained in:
parent
12207bc01c
commit
305b37b401
11 changed files with 92 additions and 26 deletions
|
@ -182,8 +182,8 @@ class PageRenderer
|
|||
|
||||
# ugly hack: store these in a thread-local variable, so that the cache-sweeper has access to it.
|
||||
Thread.current[:page_redirects] ?
|
||||
Thread.current[:page_redirects].update({ @revision.page.name => redirects}) :
|
||||
Thread.current[:page_redirects] = { @revision.page.name => redirects}
|
||||
Thread.current[:page_redirects].update({ @revision.page => redirects}) :
|
||||
Thread.current[:page_redirects] = { @revision.page => redirects}
|
||||
|
||||
categories = rendering_result.find_chunks(Category).map { |cat| cat.list }.flatten
|
||||
categories.each do |category|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue