Fixed caching bug with category 'list' and 'recently_revised' views.
Re-enabled filesystem caching.
This commit is contained in:
parent
edf335060a
commit
144540a761
4 changed files with 5 additions and 8 deletions
|
@ -8,8 +8,7 @@ require 'string_utils'
|
|||
class WikiController < ApplicationController
|
||||
|
||||
before_filter :load_page
|
||||
caches_action :show, :published, :authors, :tex, :s5, :print
|
||||
# caches_action :show, :published, :authors, :tex, :s5, :print, :recently_revised, :list
|
||||
caches_action :show, :published, :authors, :tex, :s5, :print, :recently_revised, :list
|
||||
cache_sweeper :revision_sweeper
|
||||
|
||||
layout 'default', :except => [:rss_feed, :rss_with_content, :rss_with_headlines, :tex, :pdf, :s5, :export_tex, :export_html]
|
||||
|
|
|
@ -64,7 +64,7 @@ module ApplicationHelper
|
|||
else
|
||||
"<div id=\"categories\">\n" +
|
||||
'<strong>Categories</strong>:' +
|
||||
'[' + link_to_unless_current('Any', :web => @web.address, :action => @action_name) + "]\n" +
|
||||
'[' + link_to_unless_current('Any', :web => @web.address, :action => @action_name, :category => nil) + "]\n" +
|
||||
@categories.map { |c|
|
||||
link_to_unless_current(c, :web => @web.address, :action => @action_name, :category => c)
|
||||
}.join(', ') + "\n" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue