Triggering crons via WP CLI or crontab vs WP-CRON

[ad_1]

WP-CRON has its problems, and so long ago we decided to use crontab to trigger the WP-CRON system, and recently switched to WP CLI through crontab. Every once in a while, I’m seeing a fatal error in the database, and through debugging found that it’s coming from a scheduled cron named “wp\_privacy\_delete\_old\_export\_files”. The problem is that it has null args.

Of the couple of cron related plugins I looked at, both of them protect the WP core crons, and won’t let me delete “wp\_privacy\_delete\_old\_export\_files”. Since crons are just serialized data in the options table, I think I could easily modify that serialized data to remove the crons I want to remove. I’m just wondering if anyone thinks that’s a bad idea, and if so why.

For instance, there are some crons scheduled for 4+ years ago. They’re clearly never going to run successfully. Why shouldn’t I just delete them?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer