• Resolved TomCobbley

    (@tomcobbley)


    Hi folks,

    I’ve created a staging clone of my Woocommerce site – I want to test the data retention functionality in woocommerce.

    For those that don’t know, you can configure woo to anonymise orders older than a specified duration – as part of keeping the site GDPR compliant.

    I have set these up, but my orders aren’t getting cleaned. As I understand this, it’s done by a cron job, so was wondering if WP Staging disables the cron that does this?

    There’s a bit about Woocommerce data retention settings here if anyone wants more info about it:
    https://developer.woocommerce.com/2018/05/04/woocommerce-3-4-gdpr-features/

    Thanks,
    Tom

Viewing 1 replies (of 1 total)
  • Plugin Contributor alaasalama

    (@alaasalama)

    Hi Tom!
    Cron jobs are fired with every visit to any of your website pages, giving the fact that staging sites are by default have restricted access to only admins, meaning that your staging site isn’t publicly available, so cron jobs might not be triggered regularly as a normal public production site.

    I suggest hitting the wp-cron.php file directly in the browser:
    https://example.com/staging/wp-cron.php

    You should get a blank page, that’s fine, but also cron jobs should be triggered.

    Also, I suggest trying another function that depends on a cron job like “scheduling a post in WordPress”, just to make sure about the cron job functionality in general on the staging site.

    Finally, you could also try creating a manual cron job schedule in WordPress following this guide:
    https://wpmudev.com/blog/set-up-cron-job-cpanel-wp-cron/

    Keep me updated,
    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Does WP Staging stop the woocommerce data retention cron?’ is closed to new replies.