WP Super Cache路径引起的bug

今天换了一个环境,因为缓存插件WP Super Cache的缘故,导致后台不显示。并一段警告闪过:

WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory.

Warning! WP Super Cache caching broken! The script advanced-cache.php could not load wp-cache-phase1.php.

等等。。

解决方法:

define(‘WPCACHEHOME’, dirname(__FILE__) . ‘/wp-content/plugins/wp-super-cache/’);

 

Via:http://wordpress.org/support/topic/warning-wp-super-cache-caching-broken-the-script-advanced-cachephp-could-not