How to write codes in preloader cron job without cookies
-
Hello,
Thanks for developing such an amazing plugin!
I have some questions about cron jobs:
The plugin provides two cron job urls:
1, your.example.com/********swcfpc-purge-all******
2, your.example.com/********swcfpc-preloader******However, both urls seem to require a logged-in cookie, which means I cannot hit the two urls in cPanel-Cron jobs using WGET commands.
And I cannot execute them in wordpress cron jobs:function wp_cf_cache_clean_preload_func() { wp_mail( 'example.com', 'Automatic email for cf test', 'Automatic scheduled email from WordPress to test CF cache clean and preload'); wp_remote_get( 'your.example.com/********swcfpc-purge-all******' ); sleep(20); wp_remote_get( 'your.example.com/********swcfpc-preloader******' ); }
I received the wp_mail(that means the cron function was called successfullly), but the following codes seemed not working, the cache in cloudflare remained the same.(I have checked the debug.log carefully to make sure that every action is logged)
Can you teach me how to write cron job codes without logged-in permissions? Thank you!
- You must be logged in to reply to this topic.