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
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-userThe 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.
Related pages
- Clear caches after a template change
- Stale cache
- Velocity response cache and HTTP cache
- Velocity response cache (hosting)
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.