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

Warm the caches after a deploy

Step by step - after a deploy or cache clear, request the important pages yourself (preload.php, warm.php or the Preload Sites view) so the first citizens do not wait for pages to be rendered.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/tasks/operations/warm-the-caches-after-a-deploy.md

On this page

Warm the caches after a deploy

This task is for administrators after a deploy or a full cache clear. At the end the main pages are rendered and cached before visitors ask for them. Reference: Preloading caches.

Contents

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

Before you start

  • The deploy is complete, including the PHP-FPM reload or Velocity restart; warming before that caches old pages.
  • Shell access, or setup/preload for the Preload Sites view.

Steps

Pick one:

  1. Section pages first, then links (one run at a time; every run is listed on Setup > Preload Sites):

    php bin/php/preload.php --apply --siteaccess=site --allow-root-user
  2. Every published page, suitable for a cron entry:

    php bin/php/warm.php --allow-root-user >> var/log/cache-warm.log 2>&1
  3. In the browser: Setup > Preload Sites (/setup/preload), choose the site, a page limit (default 250) and a link depth (default 3), and watch the pages being fetched.

With Velocity, exp:velocity deploy already requests the addresses of [DeploySettings] WarmUpURL[] in its last step; add your most visited pages there.

Check it worked

curl -s -o /dev/null -w '%{time_total}s\n' https://www.example.gov/

Run it a few times: after warming, the time is the cached time from the first request. Use your own site's public siteaccess name for --siteaccess.

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