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

Clear the Velocity response cache

Step by step - make Velocity serve freshly rendered pages after a template change, a correction or a restore, with exp:velocity cache clear, at the right moment, and check with the X-Cache and Age headers.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/tasks/operations/clear-the-velocity-response-cache.md

On this page

Clear the Velocity response cache

This task is for administrators of sites served by Exponential Velocity. Velocity's response cache answers repeat requests for public pages inside the server, before PHP; after a change those answers may be old. Reference: Velocity response cache.

Contents

  1. Before you start
  2. Steps
  3. Check it worked
  4. Related pages

Before you start

  • Shell access.
  • If the change involved PHP code or settings, deploy first: clearing before the workers run the new code lets old pages be stored again (Deploy a PHP change, which clears this cache as its last steps).

Steps

./console exp:velocity cache clear --apply --allow-root-user
php bin/php/cache.php velocity status --allow-root-user

The clear touches the cache's generation marker: every entry stored before it is treated as a miss and replaced on its next request; every worker and every server sharing the marker sees it within a second. Then warm the main pages (Warm the caches after a deploy).

Check it worked

curl -sI https://www.example.gov/ | grep -iE 'x-cache|age'

The first request after the clear is a miss (rendered); the next carries X-Cache: HIT and a small Age. Check the changed content in a private window.

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