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/
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/
- The topic ‘Preload Triggering Problem’ is closed to new replies.