SweepPress Pro includes a panel listing all the CRON jobs scheduled in the WordPress CRON system. This panel has several important uses:
- It shows all CRON jobs registered in the WordPress CRON system, both single-run and scheduled jobs.
- You can see each job’s next run, schedule interval, status, and source.
- The job source is either WordPress or plugins; if possible, the plugin will detect the plugin that has registered a job.
- For each job, you can do a few actions to either run the job at any time or remove the job.
- Filter jobs based on the job type, scheduled interval, and source.
When you install SweepPress for the first time, the Source column will be mostly empty. The only way for SweepPress Pro to detect which plugin has registered the job is for SweepPress Pro to be active at the moment the job is registered. For some plugins, SweepPress already has a list of jobs they register. So, the best way to detect all the job sources is to remove all the CRON jobs and let WordPress and all the active plugins register jobs again, and SweepPress Pro can get all the sources.
Having the sources listed has a few other benefits:
- You know which plugins are registering jobs, and that can help with debugging problems later.
- If you see jobs without a source, they are usually safe to remove because they most likely belong to a plugin you removed in the meantime.
- The status column will show additional status information about the job.
For each job, you have several actions:
- Delete: remove that one specific job
- Delete All: remove all the instances of the job (any job can be registered more than once)
- Run Now: run the job immediately (it will not remove or reschedule the job, and it will use arguments registered with the job)
Why remove old jobs?
Anytime you uninstall any plugin that is scheduling jobs, in most cases, the jobs will remain registered inside the WordPress CRON. And, when the scheduled time comes, WordPress will attempt to run the job, and since the plugin that have registered the job is gone, nothing will happen. But, WordPress will continue to reschedule and run jobs even if they don’t exist anymore. This is not a big performance issues, but if you want to have optimized website, there is no need to have jobs running if there is no need for them.