WP-CLI,CDN清除

时间:2018-08-16 08:41:32

标签: wordpress w3-total-cache

我正在尝试使用wp-cli清除CDN。

命令:

wp --debug w3-total-cache cdn_purge xyz.file

该命令正在wordpress的根文件夹中执行。

这是调试的最后几行:

Debug (bootstrap): Running command: w3-total-cache cdn_purge (6.6s)
PHP Notice:  Use of undefined constant WP_ROOT - assumed 'WP_ROOT' in /server_rootfolder]/wp-content/plugins/w3-total-cache/Cli.php on line 350
Notice: Use of undefined constant WP_ROOT - assumed 'WP_ROOT' in /[server_rootfolder]/wp-content/plugins/w3-total-cache/Cli.php on line 350
PHP Notice:  Undefined variable: queue_failed in /[server_rootfolder]/wp-content/plugins/w3-total-cache/Cdn_Core.php on line 269
Notice: Undefined variable: queue_failed in /[server_rootfolder]/wp-content/plugins/w3-total-cache/Cdn_Core.php on line 269
Success: Files purged successfully.

如您所见,它显示为成功:文件清除成功。,但是当我检查CDN无效时,没有任何无效活动。因此它什么也不做。从WordPress GUI后端清除就可以了。

CDN是CloudFront拉出源方法。

WordPress版本4.9.7 最新的W3-Total-Cache

有什么想法吗?

谢谢!

0 个答案:

没有答案