New on the blog: Caching in Wheels 4.0 — Actions, ...
# wheels-dev
p
New on the blog: Caching in Wheels 4.0 — Actions, Queries, Partials, and Invalidation. <https://blog.wheels.dev/posts/caching-in-wheels-4/> What it covers: • Why your
cache=
args do nothing on your laptop — caching is OFF in development by default (cacheActions/cachePages/cachePartials/cacheQueries all false in dev) • Action caching with
caches()
, including
static=true
(whole page via cfcache, aborts before filters) and
appendToKey
to vary by user • The TWO query caches everyone confuses — request-level dedupe (always on) vs
findAll(cache=N)
engine caching — and why
reload=true
only defeats one of them • Partial + page caching via
includePartial(cache=...)
/
renderView(cache=...)
• The uncomfortable truth about invalidation: there's no
clearCache(key)
.
clearCachableActions()
only unregisters; real eviction = short times +
?reload=true
• Sharp edges: cache times are MINUTES not seconds, the 5000-item bounded cache silently drops new entries when full, static caching no-ops on engines without cfcache A worked blog-home-page example ties it together — action cache as the outer skin, query + partial caches underneath.