Troubleshooting WP Super Cache Preload Issues: A Comprehensive Guide
Content
WP Super Cache's preload feature is a powerful tool for generating cached files in advance, ensuring visitors experience fast page loads. However, users often encounter issues where preload doesn't work as expected. Based on community reports and troubleshooting threads, this guide covers the most common preload problems and their solutions.
Common Preload Issues and Their Solutions
1. Preload Gets Stuck or Won't Cancel
Many users report that the preload process becomes stuck, often showing an active status indefinitely. The cancel button may also fail to work, displaying a message that cancellation is in progress without ever completing.
Why this happens: This is often related to a stuck process or a conflict with the WordPress cron system.
Potential solutions:
- Manual file deletion: Look for a file named
stop_preload.txtin your cache directory. If it exists, delete it. This file is created when you press cancel, and its presence can sometimes prevent a new preload from starting or an old one from properly terminating. - Check your cron setup: If you are using a system cron job to trigger
wp-cron.php(common whenDISABLE_WP_CRONis set to true), ensure it is configured correctly. Conflicts with other cron management plugins (like "Advanced Cron Scheduler") have been known to cause multiple, overlapping preload tasks that can hang. Try disabling such plugins to test. - Debug mode: Enable debugging in WP Super Cache's "Debug" tab. The debug log may provide clues about PHP errors or specific URLs that are causing the process to hang.
2. Preload Doesn't Generate Any Cache Files
You click "Preload Cache Now," see a countdown, but afterward, the cache remains empty. No supercached files are created.
Why this happens: The most common cause is a conflict with another service that intercepts the preload requests, such as Cloudflare. It can also be due to an incorrect site URL configuration, especially after moving from HTTP to HTTPS.
Potential solutions:
- Cloudflare conflict: You cannot effectively preload a cache if your site uses Cloudflare. The plugin's preload bot will only receive cached responses from Cloudflare's edge network instead of generating new cache files on your server. You must choose to use either Cloudflare's cache or WP Super Cache's preload feature; they are largely incompatible for this specific function.
- HTTPS configuration: If you recently enabled SSL/HTTPS, ensure your WordPress Address and Site Address are updated to
https://in Settings > General. You may also need to update your.htaccessrules manually to handle HTTPS requests correctly. - Check for login cookies: The debug log may show lines like "Login/postpass cookie detected." This indicates the preload process is being treated as a logged-in user and will not cache pages. Ensure you are not logged into your site in the same browser and that no other plugins are setting unexpected cookies for preload requests.
3. Specific Page Types (WooCommerce, Taxonomies) Don't Preload
Preload works for posts and pages but fails to cache product categories, tags, or other custom taxonomy archives.
Why this happens: By default, the preload function may not include all custom taxonomies.
Potential solution:
- You need to use the
wp_cache_preload_taxonomiesfilter to explicitly include custom taxonomies likeproduct_cat. Adding a code snippet to your theme'sfunctions.phpfile can resolve this. (Note: Always back up your site before editing theme files).
4. Preload Button is Missing or Interface is Broken
After an update, the "Preload Cache Now" button might be missing from the admin interface, making it impossible to start the process.
Why this happens: This is typically a bug introduced in a specific plugin version.
Potential solution:
- Check the plugin's support forums for any known issues with your version. A bug reported in version 1.10.0, for example, was fixed by a one-line code change. Waiting for an official patch or carefully applying a recommended code fix can resolve this.
5. Cache Files Are Deleted Too Early By Preload
Preload seems to override your configured cache timeout, deleting files before they are stale.
Why this happens: A confirmed code issue exists where the preload function overrides the global $cache_max_time variable without checking if it was already set to a higher value.
Potential solution:
- This requires a code patch to the
wp-cache.phpfile. Monitor the official plugin repository for a permanent fix in a future update.
General Preload Troubleshooting Tips
- Enable Debugging: The single most useful step is to enable the debug log in the plugin's "Debug" tab. This log provides a real-time, detailed account of what the plugin is doing, including errors and which URLs it is attempting to cache.
- Garbage Collection: Some users have reported that disabling the "Garbage Collection" scheduler can help preload run more reliably. This is worth testing if you are stuck.
- Manual Cron: If you use a system cron, set it to run less frequently (e.g., every 10-15 minutes instead of every 5) to prevent overlapping processes.
Remember, preload is a complex process that interacts heavily with your server's configuration, WordPress cron, and other plugins. Isolating the cause often involves methodically disabling other plugins and services to identify the conflict.
Related Support Threads Support
-
Preload caching all sorts of URLs?https://wordpress.org/support/topic/preload-caching-all-sorts-of-urls/
-
Preload Cache Now does not workhttps://wordpress.org/support/topic/preload-cache-now-does-not-work/
-
Preloading stops by itselfhttps://wordpress.org/support/topic/preloading-stops-by-itself/
-
Why WP Super Cache Preload Create post autohttps://wordpress.org/support/topic/why-wp-super-cache-preload-create-post-auto/
-
Preload mode skips caching pages or deletes already cached pageshttps://wordpress.org/support/topic/preload-mode-skips-caching-pages-or-deletes-already-cached-pages/
-
“Preload cache” isn’t workhttps://wordpress.org/support/topic/preload-cache-isnt-work/
-
Preload Cache Now does not workhttps://wordpress.org/support/topic/preload-cache-now-does-not-work-2/
-
Preload Issuehttps://wordpress.org/support/topic/preload-issue-4/
-
calling preload from Linux cron?https://wordpress.org/support/topic/calling-preload-from-linux-cron/
-
Preload doesn’t work on my wordpress sitehttps://wordpress.org/support/topic/preload-doesnt-work-on-my-wordpress-site/
-
Preload wont cancelhttps://wordpress.org/support/topic/preload-wont-cancel-2/
-
Preload not workinghttps://wordpress.org/support/topic/preload-not-working-10/
-
how often does wp-cron preloads WP super cache pages?https://wordpress.org/support/topic/how-often-does-wp-cron-preloads-wp-super-cache-pages/
-
Preload stuck. Cache unusablehttps://wordpress.org/support/topic/preload-stuck-cache-unusable/
-
Preload not workinghttps://wordpress.org/support/topic/preload-not-working-7/
-
Preload does not Preload Woocommerce Product Categorieshttps://wordpress.org/support/topic/preload-does-not-preload-woocommerce-product-categories/
-
Refresh Preload Issueshttps://wordpress.org/support/topic/refresh-preload-issues/
-
Preload behaves oddly – and can’t view debug loghttps://wordpress.org/support/topic/preload-behaves-oddly-and-cant-view-debug-log/
-
Preload: no option to set number of postshttps://wordpress.org/support/topic/preload-no-option-to-set-number-of-posts/
-
Preload wont Stophttps://wordpress.org/support/topic/preload-wont-stop/
-
Preload local or also Cloudflare?https://wordpress.org/support/topic/preload-local-or-also-cloudflare/
-
preload cache slow workinghttps://wordpress.org/support/topic/preload-cache-slow-working/
-
Can’t use Preload in 1.10.0: button is missing!https://wordpress.org/support/topic/cant-use-preload-in-1-10-0-button-is-missing/
-
Preload only caching 1/3 of postshttps://wordpress.org/support/topic/preload-only-caching-1-3-or-posts/
-
What does dropdown of numbers mean in Preload ____ pages?https://wordpress.org/support/topic/what-does-dropdown-of-numbers-mean-in-preload-____-pages/
-
Cache Preload Stalls On First Posthttps://wordpress.org/support/topic/cache-preload-stalls-on-first-post/
-
Version 1.10.0-alpha and Preloadhttps://wordpress.org/support/topic/version-1-10-0-alpha-and-preload/
-
Preloaded Files get recreated instead of servedhttps://wordpress.org/support/topic/preloaded-files-get-recreated-instead-of-served/
-
Fixed preload bug… preload now runs but files don’t appear in contentshttps://wordpress.org/support/topic/fixed-preload-bug-preload-now-runs-but-files-dont-appear-in-contents/
-
WP-Supercache files being ignored in favour of wp-cache fileshttps://wordpress.org/support/topic/wp-supercache-files-being-ignored-in-favour-of-wp-cache-files/
-
Preloading is scheduled multiple timeshttps://wordpress.org/support/topic/preloading-is-scheduled-multiple-times/
-
Preload not stopinghttps://wordpress.org/support/topic/preload-not-stoping/
-
Preload not workhttps://wordpress.org/support/topic/preload-not-work/
-
Stuck at Preload activehttps://wordpress.org/support/topic/stuck-at-preload-active/
-
Cache preload weird behaviorhttps://wordpress.org/support/topic/cache-preload-weird-behavior/
-
Preload gets stuckhttps://wordpress.org/support/topic/preload-gets-stuck/
-
WP Super Cache still has a nearly 4 second page load timehttps://wordpress.org/support/topic/wp-super-cache-still-has-a-nearly-4-second-page-load-time/
-
Preload doesn’t workhttps://wordpress.org/support/topic/preload-doesnt-work-2/
-
Preloaded files not on serverhttps://wordpress.org/support/topic/preloaded-files-not-on-server/
-
Preload not loading all pages (stuck?)https://wordpress.org/support/topic/preload-not-loading-all-pages-stuck/
-
Preload error v.1.10.0https://wordpress.org/support/topic/preload-error-v-1-10-0/
-
Preload in batches?https://wordpress.org/support/topic/preload-in-batches/
-
Preloading do not cache Cookie Notice pluginhttps://wordpress.org/support/topic/preloading-do-not-cache-cookie-notice-plugin/
-
Cache preload does not workhttps://wordpress.org/support/topic/cache-preload-does-not-work/
-
Preload Triggering Problemhttps://wordpress.org/support/topic/preload-triggering-problem/
-
Preload overrides $cache_max_time and deletes files before they are stalehttps://wordpress.org/support/topic/preload-overrides-cache_max_time-and-deletes-files-before-they-are-stale/
-
Preload by Cron?https://wordpress.org/support/topic/preload-by-cron/