• Resolved montr

    (@montr)


    We host our WordPress based site with GoDaddy. We have both staging and production sites. All changes are made in staging and then we sync to production. Sync includes both files and the DB.

    How do we handle this with CleanTalk Anti-spam? My concern is if the activation code is stored in the DB then staging will overwrite production every time we publish.

    Thanks,
    -Mont

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support amagsumov

    (@amagsumov)

    Hello @montr,

    I’ll clarify your question with developers and contact you on results within 1-2 days.

    Please wait.

    Hello and thank you for waiting.

    We see these 3 ways:
    1. Duplicate the table “wp_options” on your live website. Then apply your changes from your staging website to your live website. Then overwrite any records (query is: option_name LIKE ‘%cleantalk%’) from the duplicate table to your live version, then delete the duplicate table.
    2. Ask your hosting provider to do exactly that automatically. Records of the table “wp_options” (same query: option_name LIKE ‘%cleantalk%’) have to stay unchanged when you apply your staging to your live website.
    3. Use a bash script with WP CLI after each staging-live synchronization:
    php wp-cli.phar cleantalk create --token=your_token_from_dashboard --domain=your_productive_domain --email=your_productive_email
    This command will overwrite your current Access Key to your actual Access Key from your Anti-Spam Dashboard and synchronize the CleanTalk plugin.
    Our guide is here: https://cleantalk.org/help/wp-cli
    WP CLI has to be installed and has to be launched being in the root directory of your live website.

    Did it help you?

    Thread Starter montr

    (@montr)

    Thank you for the response. 2 and 3 aren’t options available to me with my provider. If I understand correctly 1 would have to be done every time I updated the site? If that is the case I assume I can just re-enter the Access Key after updating staging from production?

    Thanks

    Yes, you are correct. Simply re-enter your Access Key to your actual one after each staging-live synchronization.

    Also, you can test the protection anytime too, the guide is here:
    https://cleantalk.org/help/protection-test

    Thread Starter montr

    (@montr)

    OK, thank you.

    No problem! Tell us how it goes or if there are any errors.

    If you have time, please leave your review of your experience using the CleanTalk plugin:
    https://ww.wp.xz.cn/support/plugin/cleantalk-spam-protect/reviews

    All the best.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Staging Site’ is closed to new replies.