Cache preload visits your pages in the background so the first real visitor gets a cached page. When preloading does not start, stops halfway or reports many errors, the cause is almost always one of four things: page cache is off, WordPress background jobs do not run, your server or a firewall blocks the preload requests, or the pages cannot be cached. This guide walks through each one.
Available in: Powered Cache (free)
Where to find it: Powered Cache → Preload
Requires: Page cache turned on
Start with the preload status #
Open Powered Cache → Preload. The status panel at the top tells you what preloading is doing right now. Click Refresh to update it.
| Status | What it means | What to do |
|---|---|---|
| Page cache is off | Preloading fills the page cache, so it has nothing to do. | Turn on page cache. See Page Caching. |
| Automatic preloading is off | Warm cache automatically is turned off. | Turn it on, or start a run by hand with Preload all pages now. |
| No full preload yet | A full preload has never run on this site. | Click Preload all pages now. |
| Preloading your pages | A full preload is running. | Nothing. Leave it running. |
| Preloading is paused for a moment | The run is waiting. The message below the headline says why. | See Preloading is waiting. |
| Preloading finished with some errors | The run ended, but some pages failed. | See Preload requests fail. |
| Could not load preload status. | The settings screen could not read the status. | Reload the page. If it stays, check that the WordPress REST API works. |
If Preload all pages now shows “Could not start the full preload.”, the request to start the run failed. Reload the page and try again, then continue with the checks below.
New in 4.1: The Preload screen now shows what preloading is doing, why pages were not preloaded and when the next full preload runs. In 4.0 there was no status panel.
Preloading is waiting #
When the headline says Preloading is paused for a moment, one of these messages explains the reason. All four resolve on their own when your site works normally.
| Message | Reason |
|---|---|
| Your server is busy, so preloading takes a break. It continues automatically. | The server load is too high. See Server load pauses preloading. |
| A page did not answer in time. It is tried again shortly. | A page timed out or returned a temporary error. Preloading waits at least 15 seconds and tries that page once more. |
| Other background tasks run first. Preloading continues right after them. | Other scheduled jobs are due. Preload jobs have a lower priority on purpose. |
| Preloading continues the next time WordPress runs background tasks, usually within a minute. | Preloading waits for the next background job run. |
If the last message stays for much longer than a few minutes, WordPress background jobs probably do not run. Continue with the next section.
Background jobs do not run #
Preloading relies on two WordPress schedulers, and each one shows its jobs in a different place:
- Action Scheduler runs the preload work itself: each step of a full preload and the refresh of changed pages. You find these jobs under Tools → Scheduled Actions.
- WP-Cron runs the timers around that work: the daily preload, and short recovery checks that restart preloading if a run was interrupted. These events do not appear under Scheduled Actions. You need a cron viewer to see them.
Action Scheduler itself is started by WP-Cron every minute and, while someone uses the WordPress admin, by background requests your site sends to itself. If WP-Cron does not run, both schedulers stall and nothing gets preloaded.
Check the scheduled actions #
- Go to Tools → Scheduled Actions. On WooCommerce sites, the same list is also under WooCommerce → Status → Scheduled Actions.
- Search for
powered_cache. Powered Cache jobs use the grouppowered-cache. - Open the Pending tab. Preload jobs whose scheduled date is well in the past mean the job runner does not run. Continue with Check the WP-Cron events.
- Open the Failed tab. A failed job shows the error in its log column.
These preload jobs run through Action Scheduler:
| Job | What it does |
|---|---|
powered_cache_full_preload_step | One step of a full preload. While a full preload runs, there is one pending step at a time. |
powered_cache_incremental_preload | Preloads pages again after they change or their cache expires. |
powered_cache_prepare_manual_preload | Created when you click Preload Cache in the admin bar. It starts the full preload. |
Jobs named powered_cache_preload or powered_cache_sitemap_preload come from version 4.0. The update to 4.1 removes the pending ones.
Check the WP-Cron events #
To see WP-Cron events, install a cron viewer such as the WP Crontrol plugin and go to Tools → Cron Events, or run wp cron event list with WP-CLI. Search for powered_cache:
| Event | When you should see it |
|---|---|
powered_cache_daily_preload | Only when Page Cache is on and Full Cache Preload is set to Daily schedule. There is always one event, due at the next Daily Preload Time. If it is missing, Powered Cache adds it again on the next page load. |
powered_cache_recover_full_preload | While a full preload runs, about a minute ahead. It restarts the run if a step was lost. It is removed when the run ends. |
powered_cache_recover_incremental_preload | While changed pages wait to be preloaded, about a minute ahead. It restarts the refresh if it was interrupted. |
powered_cache_start_full_preload | Rarely. It appears for a few seconds when a full preload was requested while another preload process was busy. |
action_scheduler_run_queue | Always, every minute. It starts the Action Scheduler jobs above. |
When Powered Cache is network-activated on a multisite network, full preloads run on the main site. Look for powered_cache_daily_preload, powered_cache_recover_full_preload and powered_cache_start_full_preload in the main site’s cron events, for example with wp cron event list --url=<main site address>. A missing daily event is added again on the next page load of the main site.
If these events show a next run that is more than a few minutes in the past, WP-Cron does not run on your site. See the next section.
wp cron event list --fields=hook,next_run_relative,recurrence
wp action-scheduler action list --group=powered-cache --status=pending
WP-Cron is disabled #
Many hosts add define( 'DISABLE_WP_CRON', true ); to wp-config.php and run wp-cron.php from a real server cron instead. That is fine, as long as the server cron actually runs, ideally every minute. Action Scheduler and the preload recovery checks are both started by WP-Cron, so if the server cron does not run, or runs only once an hour, preloading stalls or crawls. Ask your host to check the cron job, or remove the constant to use the built-in WP-Cron again.
The Optimization Advisor checks this for you. Look at the Background jobs check (“Action Scheduler is ready.” or “Action Scheduler is not ready yet.”) and the WP-Cron check (“Built-in WP-Cron is disabled.”).
Sites with little traffic #
The built-in WP-Cron only runs when someone visits the site. On a new or quiet site, a daily preload can start later than the Daily Preload Time you chose, and recovery checks run late, because WP-Cron only looks for due events on the next visit. A real server cron that runs every minute fixes this.
Preload requests fail #
Preloading works by requesting each page from your own server, one at a time, with the user agent Powered Cache Preloader. Each request may take up to 3 seconds. The status panel sorts pages that were not preloaded by reason:
| Reason in the status panel | What happened |
|---|---|
| page could not be loaded (counted as Errors) | A timeout, a connection or SSL error, a 5xx, 408 or 429 response that also failed on the second try, or any other non-2xx response such as 401 or 403. |
| link redirects to another address | The page answered with a 3xx redirect. Only the target page can be cached. |
| link leads to a missing page | The page answered with 404 or 410. |
| page cannot be cached | The page loaded, but no cache file was created. See Pages load but cannot be cached. |
Full preloads skip redirects, missing pages and uncacheable pages for a week. Preload all pages now checks every page again, including pages skipped earlier. Failed pages are tried again on the next preload.
Password-protected staging sites #
If your staging site asks for a username and password in the browser (HTTP authentication), the preload requests get a 401 response, and every page counts as an error. Either preload on the live site only, or let a developer add the credentials to the preload requests. See For developers.
Firewalls and security plugins #
A security plugin, a web application firewall or your host can block the preloader. Typical signs are 403 responses (blocked) and 429 responses (rate limited). Allow requests from your own server with the user agent Powered Cache Preloader. Mobile preload requests use a mobile user agent instead, so allow your server’s own IP address if you can.
When a page returns 429 or 5xx, Powered Cache waits at least 15 seconds, or longer when the server sends a Retry-After header (up to 5 minutes), and tries once more before it marks the page as failed.
SSL certificate errors #
Preload requests check the SSL certificate. A self-signed or expired certificate, common on local and staging sites, makes every request fail. Install a valid certificate, or on a local or staging site only, let a developer turn off the check with the filter shown below.
Many pages redirect #
If most pages show “redirects to another address”, the address in Settings → General probably does not match the address your server enforces, for example http against https, or with and without www. Make both match. Preload requests do not follow redirects.
Pages load but cannot be cached #
“Cannot be cached” is normal for carts, forms and pages that change for every visitor. If it happens to all pages, check these settings:
- Development mode. While Development Mode is on, no page is cached, so every preloaded page lands here. Turn it off when you are done.
- Rejected User Agents. A pattern that matches
Powered Cache Preloader, such asPoweredorPreloader, stops caching for every preload request. Check Rejected User Agents. - Never Cache URLs and other cache rules. See Never Cache URLs.
- A plugin that stops caching. Open a page in a private window and check the
X-Powered-Cache-Miss-Reasonheader. Page Not Cached explains every reason.
Server load pauses preloading #
Preloading protects your server. Before it continues, Powered Cache reads the server load average and calculates a weighted value: half of the 1-minute load, 30% of the 5-minute load and 20% of the 15-minute load. Preloading pauses when this value is above 16, or when the load suddenly doubles and the current load already reaches 16. It continues automatically when the load drops.
On a large dedicated server, a load of 16 can be normal. A developer can raise the limit with the POWERED_CACHE_PRELOADER_MAX_SERVER_LOAD constant in wp-config.php, for example define( 'POWERED_CACHE_PRELOADER_MAX_SERVER_LOAD', 32 );. Do not raise it on shared hosting.
Preloading is very slow #
Preloading sends one request at a time. The Preload Speed setting sets the wait between requests: Gentle waits 2 seconds, Balanced 0.5 seconds and Fast does not wait. When a page takes 1.5 seconds or longer to answer, the next request waits at least 6 seconds. A slow site therefore preloads slowly on purpose. Speed up uncached page loads first, or choose a faster setting if your server has room. See Cache Preload.
Check the debug log #
Turn on the Debug Log to see each step. Useful lines for preloading are:
Processing..: https://example.com/page/: a page is being preloaded.Preload request for … returned …: a request failed, with the HTTP status code or error code.Preload paused: server load too high or spike detected (…): the load values and the limit.Full preload … step …: the progress of a full preload.Could not install the preload URL table.: the database user cannot create tables. Ask your host to allowCREATE TABLE, then deactivate and reactivate Powered Cache.
For developers #
The powered_cache_preload_url_request_args filter changes the arguments of every preload request. This example adds HTTP authentication and turns off SSL verification on a staging site. Never turn off SSL verification on a live site.
add_filter( 'powered_cache_preload_url_request_args', function ( $args ) {
$args['headers'] = [
'Authorization' => 'Basic ' . base64_encode( 'staging-user:staging-password' ),
];
$args['sslverify'] = false; // Staging only.
return $args;
} );
Other useful filters are powered_cache_preloader_max_server_load (the load limit), powered_cache_preloader_should_continue (pause preloading on your own conditions) and powered_cache_preload_action_priority (the Action Scheduler priority, default 20). See the Hooks Reference.