Skip to content

Exponential CMS

Performance and caching

The caches Exponential keeps, how to clear the right one, and what makes a site fast.

The caches

  • The view cache keeps the rendered content of a page and is cleared for the right pages when content is published (site.ini, [ContentSettings] ViewCaching).
  • Compiled templates and cache-blocks keep the parts of a page that rarely change (TemplateCompile, TemplateCache).
  • The INI cache keeps the merged settings.
  • The HTTP cache answers conditional requests with 304, sends ETags built from the content, rebuilds an expired page once, and caches 404s.
  • The static cache, off by default, writes whole pages as HTML files (staticcache.ini; exp:makestaticcache builds it).

Clearing the right cache

php bin/php/ezcache.php --list-tags
php bin/php/ezcache.php --clear-tag=ini          # after a settings change
php bin/php/ezcache.php --clear-id=template-block,content
./console exp:cache --help

Clear after the new code runs, not before: reload PHP-FPM or redeploy Velocity first, then clear content caches, or a page rendered by the old code is cached again.

Valkey and Redis

The kernel keeps its caches on disk. The separate sevenx_valkey_cache extension (Exponential 6.0.15 and newer, PHP redis extension) stores template blocks, the content view cache and the compiled INI cache in Valkey or Redis, which is useful on a cluster. Note that ezcache.php does not reach a cache kept there; the extension has its own clear command.

Velocity

Velocity keeps the application loaded between requests and adds a response cache for anonymous pages.

Preloading

Setup, Preload in the administration (or exp:preload) crawls your sites so the first visitor after a cache clear does not wait. Exponential does not use PHP's opcache.preload; normal OPcache is all it needs.

Measure

exp:benchmark measures page timings over HTTP and compares servers, so you can see whether a change helped.

Last updated 11/26/2026. Something missing or wrong? Write to info@se7enx.com.