Skip to content

Commit 4d9c258

Browse files
Merge pull request #493 from cbdr/topic/COR-777-RSS-Cache-Times
COR-777: Lower RSS Cache Times
2 parents 7ce68d0 + 2e45f63 commit 4d9c258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/rss/v2/rss/index.rss.builder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ if Rails.cache.fetch("rss-v2-#{content_type.name}")
22
xml << Rails.cache.fetch("rss-v2-#{content_type.name}")
33
end
44

5-
Rails.cache.fetch("rss-v2-#{content_type.name}", expires_in: 30.minutes, race_condition_ttl: 10) do
5+
Rails.cache.fetch("rss-v2-#{content_type.name}", expires_in: 1.minute, race_condition_ttl: 10) do
66
xml.instruct! :xml, version: '1.0', encoding: 'UTF-8'
77
xml.rss version: '2.0',
88
'xmlns:content': 'http://purl.org/rss/1.0/modules/content/',

0 commit comments

Comments
 (0)