Cor*_*ieS 3 wordpress plugins caching
我必须在WordPress项目上设置缓存,该项目已经在代理机构中处于“支持模式”一段时间。
WP Super Cache插件已经安装,因此我将其激活以进行设置。
我在开发模式下本地工作,并且该项目具有preprod和prod环境。
当我激活它时,以下错误消息出现在后台:
警告:include(/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/wp-cache-base.php):无法打开流:无此类文件或第65行上的/var/www/wp-content/plugins/wp-super-cache/wp-cache.php中的目录
警告:include():无法打开“ /var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/wp-cache-base.php”以将其包含在内(include_path ='。:/ usr / share / php:/ usr / share / pear')在第65行的/var/www/wp-content/plugins/wp-super-cache/wp-cache.php中
警告:include_once(/var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/ossdl-cdn.php):无法打开流:没有此类文件或目录在第82行的/var/www/wp-content/plugins/wp-super-cache/wp-cache.php中
警告:include_once():无法打开“ /var/www/xx/xx/xx/xx/xx/xx/wp-content/plugins/wp-super-cache/ossdl-cdn.php”以将其包含在内(include_path =' 。:/ usr / share / php:/ usr / share / pear')在第82行的/var/www/wp-content/plugins/wp-super-cache/wp-cache.php中
在第65和82行上的文件wp-cache.php中,它显示:
include(WPCACHEHOME . 'wp-cache-base.php');
Run Code Online (Sandbox Code Playgroud)
找不到路径'dirname(FILE).// wp-cache-base.php'include表达式未解析
include_once( WPCACHEHOME . 'ossdl-cdn.php' );
Run Code Online (Sandbox Code Playgroud)
找不到路径'dirname(FILE)。'/…ossdl-cdn.php'include表达式未解析
所以我在考虑改变道路。但是,这让我感到困扰,因为我担心当必须更新插件时,此操作可能会成为故障排除原因。
我不知道该如何解决。卸载并重新安装插件?使用其他插件来管理缓存?
预先感谢您的回答。祝你今天愉快!
小智 8
WP Super Cache将以下行放入wp-config.php文件中。从wp-config.php文件中删除该行,然后重新安装并重新激活插件。
define( ‘WPCACHEHOME’, ‘/home/USERNAME/public_html/wp/wp-content/plugins/wp-super-cache/’ ); //Added by WP-Cache Manager
Run Code Online (Sandbox Code Playgroud)
将Wordpress目录移动到网站的根目录后,我遇到了同样的问题。如果遇到问题并且无法停用错误的插件,请转到/ wp-content / plugins / wp-super-cache并删除或重命名目录。这将手动停用此功能,因此您可以安装新实例。
| 归档时间: |
|
| 查看次数: |
5336 次 |
| 最近记录: |