• Thanks again for the great plugin.

    The question is how to save WP Super Cache plugin configuration while deploy a new version of the web.

    We have two domains:
    example.com (deploy) – with caching on
    dev.example.com (dev version) – with WPSC plugin turned off

    While new deploy we use the bash script so the full process gets ~2 minutes

    Problem is that after deployment we have to restore WPSC settings manually and its a bit terrible.
    We can not use saved wp-cache-config.php file because $cache_page_secret constant is unique.

    Is there any way to save and restore the configuration?

    Even wp-cli has no option to do it for now 🙁
    # wp super-cache xxxxxx

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you’re using rsync or some other command like that you can tell it to ignore the wp-content/wp-cache-config.php file. Excluding config files would probably be the simplest and safest way of deploying the site.

    Thread Starter ontario777

    (@ontario777)

    Thank you Donncha,
    But we made a script to transfer web from dev subdomain to main one.

    tar -czf ~/tmp/${OLDDOMAINNAME}.${DATE_TIME_NOW}.files.tar ~/web/${OLDDOMAINNAME}/public_html;
    /usr/bin/mysqldump –opt -u”${MYDBUSER}” -p”${MYDBPASS}” ${MYDBTODUMP} –add-drop-table | gzip > ~/tmp/${OLDDOMAINNAME}.${DATE_TIME_NOW}.sql.gz;

    Than SCP transfer and deply. Than replace data in DB by wp-cli.
    It works perfect!

    The problem is that on dev web it’s other $cache_page_secret stored in DB, so we should re-configurate the cache plugin each time manually.

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

The topic ‘WP super cache settings export/ import’ is closed to new replies.