wordpress清理缓存插件wp super cache 安装配置

来源:互联网 发布:同名身份证查询软件 编辑:程序博客网 时间:2024/05/16 23:57

wp super cache 下载地址
https://wordpress.org/plugins/wp-super-cache/

将插件解压后置于插件目录下

/var/www/html/wordpress/wp-content/plugins

修改 advanced-cache.php 文件,配置变量参数如下:

$WPCACHEHOME="/var/www/html/wordpress/wp-content/plugins/wp-super-cache/"if ( false == defined( 'WPCACHEHOME' ) ) {    define( 'ADVANCEDCACHEPROBLEM', 1 );} elseif ( !include_once( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {    if ( !@is_file( WPCACHEHOME . 'wp-cache-phase1.php' ) ) {        define( 'ADVANCEDCACHEPROBLEM', 1 );    }}if ( defined( 'ADVANCEDCACHEPROBLEM' ) )    register_shutdown_function( 'wpcache_broken_message' );?>

将插件目录下的 advanced-cache.php 文件拷贝到wp-content目录下。

cd /var/www/html/wordpress/wp-content/plugins/wp-super-cachecp advanced-cache.php ../../

此时,在网站后台已经可以看到插件信息:
这里写图片描述

到这里,看样子是可以用了,但还有三个警告没有解决。
期待有大神可以解决并回复解决方案。

阅读全文
0 0
原创粉丝点击