• Resolved pavelprischepa

    (@pavelprischepa)


    Hi,

    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
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Clear cache via wp cli’ is closed to new replies.