• Resolved useStrict

    (@usestrict)


    I just ran cron jobs via wp-cli and found a couple of woocommerce jobs in the list of executed jobs:

    Executed the cron event ‘woocommerce_scheduled_sales’ in 0.016s.
    Executed the cron event ‘woocommerce_cleanup_sessions’ in 0.02s.

    The thing is, we don’t even have woocommerce installed on the site. Is there a way to clean these up?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter useStrict

    (@usestrict)

    I deleted both jobs with wp-cli. Not sure why they were left behind in the first place.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WC cron jobs running when plugin is not even installed’ is closed to new replies.