Conversation
supportHi, Is there a way to clear Varnish cache through the wp cli? By the way, I tried wp vcaching purge , but it failed with error: Fatal error: Uncaught Error: Call to undefined method VCaching::purgeUrl() in /var/www/html/wp-content/plugins/vcaching/wp-cli.php:28 Stack trace: #0 [internal function]: WP_CLI_VCaching_Purge_Command->purge(Array, Array) #1 /home/www-data/.composer/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(87): call_user_func(Array, Array, Array) #2 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array) #3 /home/www-data/.composer/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(421): call_user_func(Object(Closure), Array, Array) #4 /home/www-data/.composer/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(336): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array) #5 /home/www-data/.composer/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(343): WP_CLI\Runner->run_command(Array, Array) #6 /home/www-data/.composer/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1034): WP_CLI\Runner->_run_command_and_exit() #7 /home/www-data/.composer/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/Launch in /var/www/html/wp-content/plugins/vcaching/wp-cli.php on line 28 This topic was modified 8 years, 3 months ago by pavelprischepa .
I just run the command from WP root folder and is all ok. dev wp # wp vcaching purge --allow-root dev wp # Provide more details like php version, wp version. This reply was modified 8 years, 3 months ago by Razvan Stanga .
I’ve the same error with wp vcaching purge --allow-root . WordPress 4.9.4 PHP 7.1.12 Web access (temp instance) http://dev.wp1.pavel.wod.by/ admin/admin
I will install a fresh copy of WP on PHP 7 in a few days.
In the meantime try this cd /var/www/html && wp vcaching purge
Try version 1.6.8.
Yes, it works for me with 1.6.8. Thank you!
I just run the command from WP root folder and is all ok. dev wp # wp vcaching purge --allow-root dev wp # Provide more details like php version, wp version. This reply was modified 8 years, 3 months ago by Razvan Stanga .
I’ve the same error with wp vcaching purge --allow-root . WordPress 4.9.4 PHP 7.1.12 Web access (temp instance) http://dev.wp1.pavel.wod.by/ admin/admin
I will install a fresh copy of WP on PHP 7 in a few days.
In the meantime try this cd /var/www/html && wp vcaching purge
Try version 1.6.8.
Yes, it works for me with 1.6.8. Thank you!