WP Super Cache缓存损坏

Dus*_*rea 3 wordpress wordpress-plugin

我有一个模棱两可的错误。错误中的路径是正确的:

警告!WP Super Cache缓存损坏!脚本advanced-cache.php无法加载wp-cache-phase1.php。

请编辑/wp-content/advanced-cache.php,并确保/wp-content/plugins/wp-super-cache/wp-cache-phase1.php的路径正确。

需要解决什么?

Dus*_*rea 5

问题是直到插件加载后才定义常量。如果在行“ require_once(ABSPATH。'wp-settings.php');”中出现此错误,则是可能的。在wp-config.php中。WPCACHEHOME可能在此行之后定义,但需要在其上方定义:

define( 'WPCACHEHOME', '<site root>/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
require_once(ABSPATH . 'wp-settings.php');
Run Code Online (Sandbox Code Playgroud)