WordPress のプラグイン WP Super Cache を使っていて”Warning! WP Super Cache caching broken!”が出たときの対応方法

WordPressにWP Super Cacheっていう、ページ高速化のプラグインを使用していて以下のようなエラーが出た場合の対応方法

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

Please edit /var/www/html/wp-content/advanced-cache.php and make sure the path to /var/www/html/wp-content/plugins/wp-super-cache/wp-cache-phase1.php is correct.

これは、wp-cache-phase1.phpの場所が分からないよ。
ってエラーなので、パスを設定してあげれば大丈夫なのです。 コードの修正は以下の通り

wp-config.sys
に、以下を追加 

define( ‘WPCACHEHOME’, ‘/var/www/html/wp-content/plugins/wp-super-cache/’ );

以上です。

WordPress のプラグイン WP Super Cache を使っていて”Warning! WP Super Cache caching broken!”が出たときの対応方法
Tagged on: