Files
fizzy/app/controllers/public/collections_controller.rb
T
Kevin McConnell decd01c8d0 Extend public caching to 30 seconds
Up from the previous 5 seconds. It's still short enough that the pages
shouldn't feel stale, but it further reduces the number of requests that
will reach the app.

Also moved this into a shared concern so we can adjust the caching rule
in one place.
2025-10-23 11:48:12 -07:00

12 lines
301 B
Ruby

class Public::CollectionsController < ApplicationController
include CachedPublicly, PublicCollectionScoped
allow_unauthenticated_access only: :show
layout "public"
def show
set_page_and_extract_portion_from @collection.cards.awaiting_triage.by_last_activity.with_golden_first
end
end