Caching for topic/category RSS feeds

Using anonymous_etag() now
This commit is contained in:
Alexander
2013-03-01 13:56:14 -08:00
parent 5c986be753
commit d6e665f888
2 changed files with 9 additions and 5 deletions

View File

@ -83,7 +83,6 @@ class TopicsController < ApplicationController
toggle_mute(false)
end
def destroy
topic = Topic.where(id: params[:id]).first
guardian.ensure_can_delete!(topic)
@ -143,7 +142,9 @@ class TopicsController < ApplicationController
def feed
@topic_view = TopicView.new(params[:topic_id])
render 'topics/show', formats: [:rss]
anonymous_etag(@topic_view.topic) do
render 'topics/show', formats: [:rss]
end
end
private