mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Caching for topic/category RSS feeds
Using anonymous_etag() now
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user