X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d7f1186825751ff96ead15ae16aba2d0a7acff02..314b734aa59ac762de09daacd08bbb952c94783d:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 8daeac5de..55035d700 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -8,6 +8,10 @@ class DiaryEntryController < ApplicationController before_filter :check_database_writable, :only => [:new, :edit] before_filter :require_administrator, :only => [:hide, :hidecomment] + caches_action :list, :view, :layout => false + caches_action :rss, :layout => true + cache_sweeper :diary_sweeper, :only => [:new, :edit, :comment, :hide, :hidecomment] + def new @title = t 'diary_entry.new.title'