{"id":13302003,"date":"2020-08-24T02:16:30","date_gmt":"2020-08-24T02:16:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/preload-triggering-problem\/"},"modified":"2020-08-24T02:17:14","modified_gmt":"2020-08-24T02:17:14","slug":"preload-triggering-problem","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/preload-triggering-problem\/","title":{"rendered":"Preload Triggering Problem"},"content":{"rendered":"<p>Hi, I have some questions about preload logic.<\/p>\n<p>My setting for preload:<\/p>\n<ul>\n<li>Refresh preloaded cache files every <strong>60<\/strong> minutes.<\/li>\n<li>Preload <strong>all<\/strong> posts.<\/li>\n<li>Checked &#8211; Preload mode<\/li>\n<li>Checked &#8211; Preload tags, categories, and other taxonomies.<\/li>\n<li>I have a cron job to trigger wp-cron.php every 5 minutes on my cpanel<\/li>\n<li>Cache Timeout <strong>259200<\/strong> seconds<\/li>\n<li>Garbage Collection Scheduler <strong>Once Daily 00:00<\/strong><\/li>\n<\/ul>\n<p><strong>1. The Triggering<\/strong><\/p>\n<p>If I don&#8217;t click the Preload Cache Now button, the preload just never got triggered.<br \/>\nIf I click it, then it will get triggered and showing:<\/p>\n<blockquote><p>\nPreload Active<\/p>\n<p>Currently caching from post 0 to 100.<\/p>\n<p>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\/\n<\/p><\/blockquote>\n<p>And seems like the preload job takes forever to end.<\/p>\n<p>And I have 2 more questions from the debug log:<\/p>\n<p><strong>2. It deletes non expired records<\/strong><\/p>\n<p>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?<\/p>\n<pre><code>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\/\n01: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\/\n01: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\/\n01: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\n01: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\n01: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<\/code><\/pre>\n<p><strong>3. Preload is stuck<\/strong><br \/>\nSeems like the preload process is stuck after this.<\/p>\n<pre><code>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\/\n01: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\/\n01:54:14 5957 \/product\/alvis-drift-signature-pinotage-2018\/ wpsc_is_caching_user_disabled: false\n01:54:14 5957 \/product\/alvis-drift-signature-pinotage-2018\/ wp_cache_get_cookies_values: return: \n01: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\/\n01: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\n01:54:15 5957 \/product\/alvis-drift-signature-pinotage-2018\/ wp_cache_get_cookies_values: return: \n01:54:15 5957 \/product\/alvis-drift-signature-pinotage-2018\/ In WP Cache Phase 2\n01:54:15 5957 \/product\/alvis-drift-signature-pinotage-2018\/ Setting up WordPress actions\n01:54:15 5957 \/product\/alvis-drift-signature-pinotage-2018\/ Created output buffer\n01:54:15 5957 \/product\/alvis-drift-signature-pinotage-2018\/ wp_cache_get_cookies_values: return: \n01: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\/\n01: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\/<\/code><\/pre>\n<p>7 minutes has passed, and preload page is still showing:<\/p>\n<blockquote><p>Page last cached: 87 https:\/\/xxx.com\/product\/alvis-drift-signature-pinotage-2018\/<\/p><\/blockquote>\n","protected":false},"template":"","class_list":["post-13302003","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13302003","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13302003\/revisions"}],"predecessor-version":[{"id":13302004,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13302003\/revisions\/13302004"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13302003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}