Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP-CLI error when Page Cache is Disabled #84

Open
apkdesign opened this issue Jul 6, 2024 · 0 comments
Open

WP-CLI error when Page Cache is Disabled #84

apkdesign opened this issue Jul 6, 2024 · 0 comments

Comments

@apkdesign
Copy link

Description

When Page Cache is turned off in the SpinupWP UI, and you try to use the "wp spinupwp cache purge-site" command you will get the below error message:
Error: 'cache' is not a registered subcommand of 'spinupwp'. See 'wp help spinupwp' for available subcommands.

wp spinupwp status
Page Cache: Disabled
Object Cache: Enabled

If you enable Page Cache again and run the command, it will work:

wp spinupwp status
Page Cache: Enabled
Object Cache: Enabled

wp spinupwp cache purge-site
Success: The page cache was purged.

Tested on the latest SpinupWP Plugin version 1.7.1 and the previous two versions.

Expected behaviour

Return an error message that "Page Cache is turned off and is unable to purge site-cache"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant