From 1ab3877f65536ca613a1e9048bf0b2ce88c2cc39 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Tue, 10 Jun 2025 21:52:33 +0200 Subject: [PATCH] Enable caching at intermediate proxies during traffic spikes Implement suggestion by Kevin here https://github.com/basecamp/fizzy/pull/596#discussion_r2137474704 --- app/controllers/public/collections_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/public/collections_controller.rb b/app/controllers/public/collections_controller.rb index 2847773db..f19273959 100644 --- a/app/controllers/public/collections_controller.rb +++ b/app/controllers/public/collections_controller.rb @@ -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