Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 799 forks source link

Preloading does not work properly #25535

Open indikatordesign opened 7 years ago

indikatordesign commented 7 years ago

I use your plugin in a multisite network. The preloading does not work properly. If I click on the button to pre load now, nothing happens. I disabled the normal cronjob and added one in my Ubuntu settings. But for test purposes, I simply called the cronjob file itself. Every time when I do this, both emails (initial-email and finish-email) comes together and nothing happens. I have to click on the pre load button to clear it. Then I need to click again to start the pre load. Sometimes it works then, if I call the cronjob file again. Sometimes nothing happens. Any idea how this can be fixed? Here is the log:

14:54:57 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload Not serving wp-admin requests.
14:54:57 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:54:57 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:54:57 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload In WP Cache Phase 2
14:54:57 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload Setting up WordPress actions
14:54:57 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload Not caching wp-admin requests.
14:55:00 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:55:00 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:55:00 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload In WP Cache Phase 2
14:55:00 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload Setting up WordPress actions
14:55:00 7686 /wp-admin/options-general.php?page=wpsupercache&tab=preload Not caching wp-admin requests.
14:55:05 7693 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:55:05 7693 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:55:05 7693 /wp-admin/admin-ajax.php In WP Cache Phase 2
14:55:05 7693 /wp-admin/admin-ajax.php Setting up WordPress actions
14:55:05 7693 /wp-admin/admin-ajax.php Not caching wp-admin requests.
14:55:19 7698 /wp-cron.php Removing auth from $_COOKIE to allow caching for logged in user (wordpress_logged_in_someClibberishCodeFragments123456789)
14:55:19 7698 /wp-cron.php wp_cache_get_cookies_values: return: 
14:55:19 7698 /wp-cron.php wp_cache_get_cookies_values: return: 
14:55:19 7698 /wp-cron.php In WP Cache Phase 2
14:55:19 7698 /wp-cron.php Setting up WordPress actions
14:55:19 7698 /wp-cron.php Created output buffer
14:55:19 7698 /wp-cron.php wp_cache_get_cookies_values: return: 
14:55:19 7698 /wp-cron.php supercache dir: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:55:19 7698 /wp-cron.php wpcache_do_rebuild: doing rebuild for /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:55:19 7698 /wp-cron.php wpcache_do_rebuild: exiting as directory is not a directory: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:55:19 7698 /wp-cron.php maybe_stop_gc: GC flag not found. GC will go ahead..
14:55:19 7698 /wp-cron.php wp_cache_gc_cron: Set GC Flag. (/the-path-to/wp-content/cache/my-domain.com_wp_cache_gc.txt)
14:55:19 7698 /wp-cron.php Cache garbage collection.
14:55:19 7698 /wp-cron.php Cleaning expired cache files in /the-path-to/wp-content/cache/blogs/blog/
14:55:19 7698 /wp-cron.php GC completed. GC flag deleted.
14:55:19 7698 /wp-cron.php scheduled wp_cache_gc for 10 seconds time.
14:55:20 7701 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:55:20 7701 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:55:20 7701 /wp-admin/admin-ajax.php In WP Cache Phase 2
14:55:20 7701 /wp-admin/admin-ajax.php Setting up WordPress actions
14:55:20 7701 /wp-admin/admin-ajax.php Not caching wp-admin requests.
14:55:28 7698 /wp-cron.php wp_cron_preload_cache: doing taxonomy preload.
14:55:28 7698 /wp-cron.php wp_cron_preload_cache: got 100 posts from position 0.
14:55:28 7698 /wp-cron.php supercache dir: /the-path-to/wp-content/cache/supercache/my-domain.com/blog/
14:55:28 7698 /wp-cron.php wp_cron_preload_cache: cancelling preload. stop_preload.txt found.
14:55:28 7698 /wp-cron.php URI rejected. Not Caching
14:55:28 7698 /wp-cron.php wp_cache_maybe_dynamic: returned $buffer
14:55:38 7737 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:55:38 7737 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:55:38 7737 /wp-admin/admin-ajax.php In WP Cache Phase 2
14:55:38 7737 /wp-admin/admin-ajax.php Setting up WordPress actions
14:55:38 7737 /wp-admin/admin-ajax.php Not caching wp-admin requests.
14:55:41 7738 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:55:41 7738 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:55:41 7738 /wp-admin/admin-ajax.php In WP Cache Phase 2
14:55:41 7738 /wp-admin/admin-ajax.php Setting up WordPress actions
14:55:41 7738 /wp-admin/admin-ajax.php Not caching wp-admin requests.
14:55:52 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:55:52 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:55:52 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload In WP Cache Phase 2
14:55:52 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload Setting up WordPress actions
14:55:52 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload Not caching wp-admin requests.
14:55:52 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload wpsc_cancel_preload: creating stop_preload.txt
14:55:56 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:55:56 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:55:56 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload In WP Cache Phase 2
14:55:56 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload Setting up WordPress actions
14:55:56 7739 /wp-admin/options-general.php?page=wpsupercache&tab=preload Not caching wp-admin requests.
14:56:16 7745 /wp-cron.php Removing auth from $_COOKIE to allow caching for logged in user (wordpress_logged_in_someClibberishCodeFragments123456789)
14:56:16 7745 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:16 7745 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:16 7745 /wp-cron.php In WP Cache Phase 2
14:56:16 7745 /wp-cron.php Setting up WordPress actions
14:56:16 7745 /wp-cron.php Created output buffer
14:56:16 7745 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:16 7745 /wp-cron.php supercache dir: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:16 7745 /wp-cron.php wpcache_do_rebuild: doing rebuild for /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:16 7745 /wp-cron.php wpcache_do_rebuild: exiting as directory is not a directory: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:23 7745 /wp-cron.php wp_cron_preload_cache: doing taxonomy preload.
14:56:23 7745 /wp-cron.php wp_cron_preload_cache: got 100 posts from position 0.
14:56:23 7745 /wp-cron.php supercache dir: /the-path-to/wp-content/cache/supercache/my-domain.com/blog/
14:56:23 7745 /wp-cron.php wp_cron_preload_cache: cancelling preload. stop_preload.txt found.
14:56:24 7745 /wp-cron.php URI rejected. Not Caching
14:56:24 7745 /wp-cron.php wp_cache_maybe_dynamic: returned $buffer
14:56:34 7745 /wp-cron.php Removing auth from $_COOKIE to allow caching for logged in user (wordpress_logged_in_someClibberishCodeFragments123456789)
14:56:34 7745 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:34 7745 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:34 7745 /wp-cron.php In WP Cache Phase 2
14:56:34 7745 /wp-cron.php Setting up WordPress actions
14:56:34 7745 /wp-cron.php Created output buffer
14:56:34 7745 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:34 7745 /wp-cron.php supercache dir: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:34 7745 /wp-cron.php wpcache_do_rebuild: doing rebuild for /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:34 7745 /wp-cron.php wpcache_do_rebuild: exiting as directory is not a directory: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:34 7745 /wp-cron.php URI rejected. Not Caching
14:56:34 7745 /wp-cron.php wp_cache_maybe_dynamic: returned $buffer
14:56:46 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:56:46 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:56:46 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload In WP Cache Phase 2
14:56:46 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload Setting up WordPress actions
14:56:46 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload Not caching wp-admin requests.
14:56:46 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload wpsc_cancel_preload: creating stop_preload.txt
14:56:51 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:56:51 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:56:51 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload In WP Cache Phase 2
14:56:51 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload Setting up WordPress actions
14:56:51 7753 /wp-admin/options-general.php?page=wpsupercache&tab=preload Not caching wp-admin requests.
14:56:56 7753 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:56:56 7753 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:56:56 7753 /wp-admin/admin-ajax.php In WP Cache Phase 2
14:56:56 7753 /wp-admin/admin-ajax.php Setting up WordPress actions
14:56:56 7753 /wp-admin/admin-ajax.php Not caching wp-admin requests.
14:56:57 7753 /wp-cron.php Removing auth from $_COOKIE to allow caching for logged in user (wordpress_logged_in_someClibberishCodeFragments123456789)
14:56:57 7753 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:57 7753 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:57 7753 /wp-cron.php In WP Cache Phase 2
14:56:57 7753 /wp-cron.php Setting up WordPress actions
14:56:57 7753 /wp-cron.php Created output buffer
14:56:57 7753 /wp-cron.php wp_cache_get_cookies_values: return: 
14:56:57 7753 /wp-cron.php supercache dir: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:57 7753 /wp-cron.php wpcache_do_rebuild: doing rebuild for /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:57 7753 /wp-cron.php wpcache_do_rebuild: exiting as directory is not a directory: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:56:57 7753 /wp-cron.php URI rejected. Not Caching
14:56:57 7753 /wp-cron.php wp_cache_maybe_dynamic: returned $buffer
14:57:10 7757 /wp-cron.php Removing auth from $_COOKIE to allow caching for logged in user (wordpress_logged_in_someClibberishCodeFragments123456789)
14:57:10 7757 /wp-cron.php wp_cache_get_cookies_values: return: 
14:57:10 7757 /wp-cron.php wp_cache_get_cookies_values: return: 
14:57:10 7757 /wp-cron.php In WP Cache Phase 2
14:57:10 7757 /wp-cron.php Setting up WordPress actions
14:57:10 7757 /wp-cron.php Created output buffer
14:57:10 7757 /wp-cron.php wp_cache_get_cookies_values: return: 
14:57:10 7757 /wp-cron.php supercache dir: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:57:10 7757 /wp-cron.php wpcache_do_rebuild: doing rebuild for /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:57:10 7757 /wp-cron.php wpcache_do_rebuild: exiting as directory is not a directory: /the-path-to/wp-content/cache/supercache/my-domain.com/wp-cron.php/
14:57:18 7757 /wp-cron.php wp_cron_preload_cache: doing taxonomy preload.
14:57:18 7757 /wp-cron.php wp_cron_preload_cache: got 100 posts from position 0.
14:57:18 7757 /wp-cron.php supercache dir: /the-path-to/wp-content/cache/supercache/my-domain.com/blog/
14:57:18 7757 /wp-cron.php wp_cron_preload_cache: cancelling preload. stop_preload.txt found.
14:57:18 7757 /wp-cron.php URI rejected. Not Caching
14:57:18 7757 /wp-cron.php wp_cache_maybe_dynamic: returned $buffer
14:57:20 7760 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: /^wp-postpass_someClibberishCodeFragments123456789|^comment_author_someClibberishCodeFragments123456789|^wordpress_logged_in_someClibberishCodeFragments123456789/ Cookie detected: wordpress_logged_in_someClibberishCodeFragments123456789
14:57:20 7760 /wp-admin/admin-ajax.php wp_cache_get_cookies_values: return: e13988922b4c1e1113cb103b175c8687
14:57:20 7760 /wp-admin/admin-ajax.php In WP Cache Phase 2
14:57:20 7760 /wp-admin/admin-ajax.php Setting up WordPress actions
14:57:20 7760 /wp-admin/admin-ajax.php Not caching wp-admin requests.
stodorovic commented 7 years ago

Hi @indikatordesign

I see in your logs: 14:55:28 7698 /wp-cron.php wp_cron_preload_cache: cancelling preload. stop_preload.txt found. It's reason why preload doesn't start.

I created issue Automattic/wp-super-cache#326, but it's fixed in the latest version (1.5.4) which is just released. Which is your version?

I've tested preload on couple websites (CentOS and cron script) and I didn't notice similar issues. Could you enable WP debug log and check for warnings/notices in debug.log? Please try to remove stop_preload.txt and other temp files from cache directory and start cron script again.

indikatordesign commented 7 years ago

Hi stodorovic,

directly after I sent my message, the new release was online. I updated it directly, but it still exists. Since this not work and all my posts and pages are deleted, if I update a single post, I decided to remove the plugin and use another solution. Perhaps this is related to multisite. It's pity, cause it loads really fast if it works. But I simply need a working solution, cause I have to finish some important projects and no time to figure it out..