Module: Plum::StaticCacheInvalidation
- Extended by:
- ActiveSupport::Concern
- Included in:
- Asset, ContentType, Entry, EntryTerm, FormDefinition, Global, NavItem, NavMenu, Site, SiteSetting, Taxonomy, Term
- Defined in:
- app/models/plum/static_cache_invalidation.rb
Overview
Flushes the static page cache whenever content that appears in rendered pages changes. Flushing is deletion-only and per-site, so being liberal here costs one lazy re-render per page, never a wrong page.
Constant Summary collapse
- CACHE_IRRELEVANT_COLUMNS =
Columns that never appear in rendered pages — saves touching only these (draft autosaves) keep the cache warm.
%w[draft_data updated_at].freeze