无法在 WP Super Cache 中启用缓存

Can't enable caching in WP Super Cache

我在使用 WP Super Cache 启用缓存时遇到问题。当前 运行 全新安装的 Wordpress 用于测试。我唯一做的就是安装 WP Super Cache 并删除 Akismet 和 Hello Dolly。

插件已激活,但我无法在设置中启用缓存。当我重新加载设置页面时,它再次显示 "Caching Off"。

出于某种原因,它还在 wp-content 中不断创建 wp-cache-config.php 的副本,并在 webroot 中创建 wp-config.php 的副本。所有这些副本都被命名为随机数,例如 8734852931.php

WP 中的一条消息首先说它已添加

define( 'WP_CACHE', true );

到 wp-config.php,但它没有。当我手动添加它时(在 require_once(ABSPATH . 'wp-settings.php') 之上);)我收到另一条消息:

Warning! WP Super Cache caching was broken but has been fixed! The script advanced-cache.php could not load wp-cache-phase1.php. The file /home/X/public_html/wp-content/advanced-cache.php has been recreated and WPCACHEHOME fixed in your wp-config.php. Reload to hide this message.

重载不隐藏,WPCACHEHOME不放入wp-config.php。如果我手动添加

define('WPCACHEHOME', '/home/X/public_html/wp-content/plugins/wp-super-cache/');

到 wp-config.php 消息消失了,但缓存仍然不会打开。

Apache 错误日志没有任何有趣的内容,即使在调试级别也是如此。

我已经尝试在整个 webroot 上使用 chmod 777 重新执行一遍,结果相同,所以我认为这不是权限问题。 我还尝试了不同的 PHP(现在是 运行 5.6)和 Wordpress 版本。 有些人 运行 的服务器设置与我完全相同,他们的网站上有 WP Super Cache 运行。

有人知道这里的问题是什么吗?

已解决。它是 "disable_functions = rename" 导致了这个问题。