decd01c8d0
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.
19 lines
461 B
Ruby
19 lines
461 B
Ruby
class Public::Collections::ColumnsController < ApplicationController
|
|
include ActionView::RecordIdentifier, CachedPublicly, PublicCollectionScoped
|
|
|
|
allow_unauthenticated_access only: :show
|
|
|
|
layout "public"
|
|
|
|
before_action :set_column, only: :show
|
|
|
|
def show
|
|
set_page_and_extract_portion_from @column.cards.active.by_last_activity.with_golden_first
|
|
end
|
|
|
|
private
|
|
def set_column
|
|
@column = @collection.columns.find(params[:id])
|
|
end
|
|
end
|