WP-CLI varnish purge command fails to check return code from request
-
If I use WP-CLI to clear the entire cache of a site with a command like this:
wp varnish purge https://www.exampleurl.com/ –wildcard
then the command always returns a success message “Success: Proxy Cache Purge has flushed your cache.” even if the purging http request returned a failure code and didn’t flush anything at all out of the cache!
It looks like the purge_url() function in varnish-http-purge.php doesn’t return any failure or success code at all, which it should do (and this should then be checked by any calls to it).
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘WP-CLI varnish purge command fails to check return code from request’ is closed to new replies.