Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Stale cache

Runbook for a public site that keeps showing old content or old code after a change - which cache holds it (content view cache, templates, INI, the HTTP cache, Velocity's response cache, static cache, a CDN, the…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/operations/incidents/stale-cache.md

On this page

Stale cache

This runbook is for administrators, and for web managers who must explain why a correction is not yet visible. A public site has several caches; clear the smallest one that fixes the problem, and clear caches that hold finished pages last. Reference: Caches and Operating a site, section 2.

Cache management: clear all caches, content caches, template caches or INI caches
Cache management: clear all caches, content caches, template caches or INI caches

Contents

  1. First, look
  2. Which cache?
  3. The order matters
  4. Outside Exponential
  5. Related pages

First, look

php bin/php/cache.php status --allow-root-user
php bin/php/cache.php list --sizes --allow-root-user

status shows the caches in front of PHP (static, HTTP, query, Velocity, OPcache, APCu) and ends in PASS. In the administration: Setup > Cache management (/setup/cache).

Check the page as an anonymous visitor in a private window and as an editor: the HTTP cache is role-aware, so the two can differ.

Which cache?

What is staleClear
One page's content after publishingnormally cleared automatically; if not: php bin/php/ezcache.php --clear-tag=content --allow-root-user
Every page's look after a template change./console exp:cache clear --id=template --allow-root-user
A new template or extension is not picked upphp bin/php/ezcache.php --clear-id=template-override --allow-root-user and --clear-id=design_base
A settings change has no effectphp bin/php/ezcache.php --clear-tag=ini --allow-root-user, then reload PHP or deploy
Pages served by Velocity./console exp:velocity cache clear --apply --allow-root-user
The role-aware HTTP cachephp bin/php/cache.php httpcache clear --allow-root-user
Static cache files (when StaticCache=enabled)regenerate, or php bin/php/cache.php static clear --allow-root-user
Unsurephp bin/php/ezcache.php --clear-all --allow-root-user (then the caches in front, then warm)

Every cache command has a --dry-run that shows what it would do.

The order matters

Clear the caches that hold finished pages (HTTP cache, Velocity's response cache) after PHP-FPM and Velocity run the new code; otherwise a page rendered by the old code in between is stored again and the change "did not work". After a code or settings change, ./console exp:velocity deploy --allow-root-user does every step in the right order (Deploying, section 7). Then warm the site: php bin/php/preload.php --apply --siteaccess=site --allow-root-user.

Outside Exponential

  • CDN or reverse proxy: purge it with its own tool after the caches above.
  • Browsers: a hard reload; the site's service worker, if a design installs one, can replay old pages.
  • Search engines and feeds: they refresh on their own schedule; for urgent corrections publish a visible correction note.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x