WP迁移更换主机WP-Super-Cache出错解决办法

一般出现在更换主机时,会提示错误:

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

原因是路径错误,修改主机路径即可,具体修改如下:
找到wordpress所在目录/wp-content/advanced-cache.php这个文件,修改它们的路径

if ( !include_once( ‘/home/wp-content/plugins/wp-super-cache/’ . ‘wp-cache-phase1.php’ ) ) {
if ( !@is_file( ‘/home/wp-content/plugins/wp-super-cache/’ . ‘wp-cache-phase1.php’ ) ) {

 

修改成ftp可以找到的路径即可

标签

发表评论