Title: Preload Triggering Problem
Last modified: August 24, 2020

---

# Preload Triggering Problem

 *  [jasonching](https://wordpress.org/support/users/jasonching/)
 * (@jasonching)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/preload-triggering-problem/)
 * Hi, I have some questions about preload logic.
 * My setting for preload:
    - Refresh preloaded cache files every **60** minutes.
    - Preload **all** posts.
    - Checked – Preload mode
    - Checked – Preload tags, categories, and other taxonomies.
    - I have a cron job to trigger wp-cron.php every 5 minutes on my cpanel
    - Cache Timeout **259200** seconds
    - Garbage Collection Scheduler **Once Daily 00:00**
 * **1. The Triggering**
 * If I don’t click the Preload Cache Now button, the preload just never got triggered.
   
   If I click it, then it will get triggered and showing:
 * >  Preload Active
   > Currently caching from post 0 to 100.
   > Page last cached: 18 [https://xxx.com/product/%e6%b3%95%e5%9c%8b%e7%a6%a6%e7%8f%8d%e9%87%91%e6%a8%99%e7%b4%85%e8%91%a1%e8%90%84%e9%85%922013/](https://xxx.com/product/%e6%b3%95%e5%9c%8b%e7%a6%a6%e7%8f%8d%e9%87%91%e6%a8%99%e7%b4%85%e8%91%a1%e8%90%84%e9%85%922013/)
 * And seems like the preload job takes forever to end.
 * And I have 2 more questions from the debug log:
 * **2. It deletes non expired records**
 * It seems like the preload is deleting files that are not expired. It just simply
   rebuild everything. Is this the expected behavior? Should it be smart to skip
   non expired pages?
 *     ```
       01:54:10 189190 /wp-cron.php?doing_wp_cron=1598233756.3529689311981201171875 wp_cron_preload_cache: fetched https://xxx/product/%e8%89%be%e8%8f%b2%e6%96%af221%e9%bb%91%e7%89%8c%e7%b4%85%e8%91%a1%e8%90%84%e9%85%922017/
       01:54:11 189190 /wp-cron.php?doing_wp_cron=1598233756.3529689311981201171875 supercache dir: /home/infinity/xxx.com/wp-content/cache/supercache/xxx/product/%e8%89%be%e8%8f%b2%e6%96%af%e7%9a%ae%e8%ab%be%e7%89%b9%e7%b4%85%e8%91%a1%e8%90%84%e9%85%922018/
       01:54:11 189190 /wp-cron.php?doing_wp_cron=1598233756.3529689311981201171875 clear_post_supercache: post_id: 3209. deleting files in /home/infinity/xxx.com/wp-content/cache/supercache/xxx/product/%e8%89%be%e8%8f%b2%e6%96%af%e7%9a%ae%e8%ab%be%e7%89%b9%e7%b4%85%e8%91%a1%e8%90%84%e9%85%922018/
       01:54:11 189190 /wp-cron.php?doing_wp_cron=1598233756.3529689311981201171875 prune_super_cache: deleted /home/infinity/xxx.com/wp-content/cache/supercache/xxx/product/%e8%89%be%e8%8f%b2%e6%96%af%e7%9a%ae%e8%ab%be%e7%89%b9%e7%b4%85%e8%91%a1%e8%90%84%e9%85%922018/wp-cache-f7fae20edc9916a6bd9b201bea7d035c.php
       01:54:11 189190 /wp-cron.php?doing_wp_cron=1598233756.3529689311981201171875 prune_super_cache: deleted /home/infinity/xxx.com/wp-content/cache/supercache/xxx/product/%e8%89%be%e8%8f%b2%e6%96%af%e7%9a%ae%e8%ab%be%e7%89%b9%e7%b4%85%e8%91%a1%e8%90%84%e9%85%922018/meta-wp-cache-f7fae20edc9916a6bd9b201bea7d035c.php
       01:54:11 5914 /product/%E8%89%BE%E8%8F%B2%E6%96%AF%E7%9A%AE%E8%AB%BE%E7%89%B9%E7%B4%85%E8%91%A1%E8%90%84%E9%85%922018/ wpsc_is_caching_user_disabled: false
       ```
   
 * **3. Preload is stuck**
    Seems like the preload process is stuck after this.
 *     ```
       01:54:13 189190 /wp-cron.php?doing_wp_cron=1598233756.3529689311981201171875 wp_cron_preload_cache: fetched https://www.xxx.com/product/%e8%89%be%e8%8f%b2%e6%96%af%e7%9a%ae%e8%ab%be%e7%89%b9%e7%b4%85%e8%91%a1%e8%90%84%e9%85%922018/
       01:54:14 189190 /wp-cron.php?doing_wp_cron=1598233756.3529689311981201171875 supercache dir: /home/infinity/xxx.com/wp-content/cache/supercache/www.xxx.com/product/alvis-drift-signature-pinotage-2018/
       01:54:14 5957 /product/alvis-drift-signature-pinotage-2018/ wpsc_is_caching_user_disabled: false
       01:54:14 5957 /product/alvis-drift-signature-pinotage-2018/ wp_cache_get_cookies_values: return: 
       01:54:14 5957 /product/alvis-drift-signature-pinotage-2018/ supercache dir: /home/infinity/xxx.com/wp-content/cache/supercache/www.xxx.com/product/alvis-drift-signature-pinotage-2018/
       01:54:14 5957 /product/alvis-drift-signature-pinotage-2018/ No Super Cache file found for current URL: /home/infinity/xxx.com/wp-content/cache/supercache/www.xxx.com/product/alvis-drift-signature-pinotage-2018/index-https.html
       01:54:15 5957 /product/alvis-drift-signature-pinotage-2018/ wp_cache_get_cookies_values: return: 
       01:54:15 5957 /product/alvis-drift-signature-pinotage-2018/ In WP Cache Phase 2
       01:54:15 5957 /product/alvis-drift-signature-pinotage-2018/ Setting up WordPress actions
       01:54:15 5957 /product/alvis-drift-signature-pinotage-2018/ Created output buffer
       01:54:15 5957 /product/alvis-drift-signature-pinotage-2018/ wp_cache_get_cookies_values: return: 
       01:54:15 5957 /product/alvis-drift-signature-pinotage-2018/ wpcache_do_rebuild: doing rebuild for /home/infinity/xxx.com/wp-content/cache/supercache/www.xxx.com/product/alvis-drift-signature-pinotage-2018/
       01:54:15 5957 /product/alvis-drift-signature-pinotage-2018/ wpcache_do_rebuild: exiting as directory is not a directory: /home/infinity/xxx.com/wp-content/cache/supercache/www.xxx.com/product/alvis-drift-signature-pinotage-2018/
       ```
   
 * 7 minutes has passed, and preload page is still showing:
 * > Page last cached: 87 [https://xxx.com/product/alvis-drift-signature-pinotage-2018/](https://xxx.com/product/alvis-drift-signature-pinotage-2018/)
    -  This topic was modified 5 years, 9 months ago by [jasonching](https://wordpress.org/support/users/jasonching/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/preload-triggering-problem/#post-13303126)
 * 1. Do you have problems with other wp-cron jobs? Do they trigger on time?
    2.
   Preload will create cache files for everything. Expired or not. 3. Interesting.
   The last entry is “exiting as directory is not a directory”, which means it didn’t
   find a cached file there. That shouldn’t stop the preload as that happens all
   the time. Maybe there’s a problem with the wp-cron system on your site? It’s 
   not scheduling the next job properly.
 *  Thread Starter [jasonching](https://wordpress.org/support/users/jasonching/)
 * (@jasonching)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/preload-triggering-problem/#post-13305011)
 * But I have the cron job to run every 5 minutes. That’s how the first preload 
   get start.
 * I need to click preload cache now
    Then wait for the cron job to start So that
   the preload will actually start

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Preload Triggering Problem’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jasonching](https://wordpress.org/support/users/jasonching/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/preload-triggering-problem/#post-13305011)
 * Status: not resolved