Switch logic to WP cron
-
Hi Jennifer,
I like how simple your solution is, especially compared to thousands of lines of code in other plugins. All we need is simplicity.
However, I don’t see the reason to trigger the check and the query on every page load, which for busy sites could be hundreds of thousands of times a day, or even millions.
Rather, there should be a separate wp cron job running every minute, and then a user visit should trigger the missed post sweep, and everything missed will get posted then. Avoiding such repetition is already a solved problem (wp cron), and it’s good practice to use it.
The flaw in WP’s own approach is they’re afraid to publish missed schedules for some reason. They should just make it an option to publish late – it’s better than not publishing at all, but since they won’t, this plugin should instead.
- The topic ‘Switch logic to WP cron’ is closed to new replies.