Enable caching at intermediate proxies during traffic spikes

Implement suggestion by Kevin here https://github.com/basecamp/fizzy/pull/596#discussion_r2137474704
This commit is contained in:
Jorge Manrubia
2025-06-10 21:52:33 +02:00
parent 2f23f24c3f
commit 1ab3877f65
@@ -9,5 +9,8 @@ class Public::CollectionsController < ApplicationController
@considering = current_page_from @collection.cards.considering.latest, per_page: CardsController::PAGE_SIZE
@doing = current_page_from @collection.cards.doing.latest, per_page: CardsController::PAGE_SIZE
@closed = current_page_from @collection.cards.closed.recently_closed_first, per_page: CardsController::PAGE_SIZE
# To enable caching at intermediate proxies during traffic spikes
expires_in 5.seconds, public: true
end
end