Can/should we delete wordpress cron jobs with no action?
Can/should we delete wordpress cron jobs with no action?
Can/should we delete wordpress cron jobs with no action?
Delete all users when they don’t update profile_fields
Delete all posts with a specific custom field using meta_query
WordPress cron job running more than once
wp_schedule_single_event is set correctly but sometimes not fired
Offloading cron jobs
The WP-Cron functions are not actually cron functions. Instead of a cron running and executing tasks precisely as scheduled, it waits until the frontend or admin is loaded, checks if any jobs are scheduled and then fires as needed. To execute the cron jobs, WP loads wp-cron.php, which is located in the root folder. My … Read more
Make the user query when the job is submitted and put all matching subscribers in a queue. At the end of the day run through the queue once and send the mails.
See wp_schedule_single_event() function. The general idea would be each time after you are done with a batch of users schedule next run few minutes ahead and pass info (such as offset from which user to continue) in arguments. On larger scale I’d consider looking into alternate more specialized solutions or simplifying your process. Mass emailing … Read more
Pinging and similar is all done in the background already. If you have a plugin rebuilding a sitemap or something, then consider using a different plugin which doesn’t have the same rebuilding time issue.