WordPress解决WP Super Cache插件Super Cache dynamic page detected but late init not set. See the readme.txt for further details的错误。
WP Super Cache插件
WordPress建的网站时间长了会变慢,大多数站长会安装WP Super Cache这个插件,比如江湖人士这个网站,刚开始安装时,通过Firefox查看源码时发现,会在源码的最后面出现如下代码:
<!-- Dynamic page generated in 1.061 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2018-03-02 20:31:46 --> <!-- Super Cache dynamic page detected but late init not set. See the readme.txt for further details. --> <!-- Dynamic Super Cache --> <!-- Compression = gzip -->
Super Cache dynamic page detected
如下图所示:
出现这个状况,通常是我们在WP Super Cache的高级设置处设置有问题造成的,只需要我们在高级设置处找到“Late init. Display cached files after WordPress has loaded.”设置项目,将期打上勾即可,如下图所示:
更新后,还需要将缓存文件删除,然后就可以了,正常后再到 Firefox下刷新一下界面,然后查看源码,出现下面的代码就说明正常了,正常代码如下:
<!-- Dynamic page generated in 1.060 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2018-03-02 20:41:47 --> <!-- Dynamic Super Cache --> <!-- Compression = gzip -->