Hi @usestrict
The cron jobs you mentioned, woocommerce_scheduled_sales
and woocommerce_cleanup_sessions
, are indeed related to WooCommerce. They are usually created when WooCommerce is installed and are used to handle scheduled tasks such as updating sale prices at the start/end of sales and cleaning up expired customer sessions respectively.
In your case, it seems these cron jobs were left behind after uninstalling the WooCommerce plugin. This can happen if the plugin was not completely removed, or if there were some database entries related to WooCommerce that were not cleaned up during the uninstallation process.
You’ve done the right thing by deleting these cron jobs manually with wp-cli. However, to ensure this doesn’t happen again, you might want to check your site’s database for any residual WooCommerce entries. Look for any options in the wp_options
table that start with woocommerce_
or wc
, and any tables that start with woocommerce_
or wc_
. If you find any, you can delete them manually. Please remember to back up your database before making any changes.
Also, if you used a caching plugin or server-side caching, make sure to clear all caches after uninstalling WooCommerce, as some data might still be stored in the cache.
Please note that directly interacting with your database can have significant effects on your website, so proceed with caution and consider getting help from a developer if you’re not comfortable with this.
I hope this helps! If you have any other questions, feel free to ask.
Thanks!