Hello @programmin
Thank you for reaching out and I am happy to help!
The Setup Guide is displayed if a certain WP Site Option is not set. It’s not controlled by the config.
WP Site Option w3tc_setupguide_completed is set to a Unix timestamp (int) when completed or skipped.
If you skip the Setup Guide are are the settings matching imported Json file?
Thanks!
Thanks, that does it.
However it doesn’t seem it imported? Before wpcli command I see:
Preview Mode disabled
Page Cache disabled
Minify disabled
Opcode Cache disabled
Database Cache disabled
Object Cache disabled
Browser Cache enabled
CDN disabled
Reverse Proxy disabled
Statistics disabled
Fragment Cache disabled
Debug disabled
After a successful “wp total-cache import w3-total-cache-settings.json” I saw expected settings, as if the wpcli command is calling differently?
Preview Mode disabled
Page Cache enabled
Minify disabled
Opcode Cache disabled
Database Cache disabled
Object Cache disabled
Browser Cache enabled
CDN disabled
Reverse Proxy disabled
Statistics disabled
Fragment Cache disabled
Debug
Looking at the differences from your Cli.php and trying to do the same from code to import it…
I called ->import(filename), then ->save(), even after calling WP_Filesystem, require_once of /w3-total-cache/w3-total-cache-api.php, still not setting what I would expect and what would be set with wp cli.
I don’t know if it is a Total-cache bug, but when I run it on later request and not immediately after activate_plugin, it works…?
I think this can be closed, thank you.
Hey @programmin
Thank youj for your feedback!
Glad to know it works!