php – Can/should we delete wordpress cron jobs with no action?
I find myself during a website creation where I try several plugins and delete them afterwards. However, some plugins do not clean their cronjobs and are left to be executed with no action.
My question is this: Should we clean up/delete leftover crons with no action? If we should, what is the best way to do it? Is manual the only way to go (ex. WP Crontrol plugin)? Bonus: If we should not, why not?
It would be handy to have a small function to take with me and add it to child themes. I am thinking an action during post/page save like:
I am not talking about whether we should switch to an “actual” cronjob where we should but I found very little information about the impact of cronjobs. My guess is that if even “empty” cronjobs add up there is a measurable impact in performance and tons of users are in the same situation with bloated sites because of uninstalled plugins. There must be a better way to tackle this.