WPIntell

Source evidence

Clear cache via wp cli

Varnish/Nginx Proxy Caching · support · 2018-02-09T04:39:00+00:00

mixedsentiment
highseverity
0.94relevance
6replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 31 rows with source links

12.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

27 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
pavelprischepa resolved
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 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!

Comments

6 shown
Razvan Stanga 2018-02-09T07:17:00+00:00

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 .

pavelprischepa 2018-02-09T07:35:00+00:00

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

Razvan Stanga 2018-02-12T12:28:00+00:00

I will install a fresh copy of WP on PHP 7 in a few days.

Razvan Stanga 2018-02-14T09:03:00+00:00

In the meantime try this cd /var/www/html && wp vcaching purge

Razvan Stanga 2018-04-16T12:28:00+00:00

Try version 1.6.8.

pavelprischepa 2018-04-18T03:44:00+00:00

Yes, it works for me with 1.6.8. Thank you!