Skip to content

Super cache configuration export/ import #28

@Ontario7

Description

@Ontario7

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?

Wp-cli has no option to do it for now.
Could be:

wp super-cache export-settings >file

wp super-cache import-settings <file

So during deploy could be the sequence:

wp plugin activate wp-super-cache
wp super-cache enable
wp super-cache flush
wp super-cache import-settings <file

It would be really great!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions