首先,需要在wp-config.php中添加语句 define('WP_CACHE', true); 。下面是Hyper Cache设置页面几个选项卡中需要设置的地方:General选项卡勾选When a post is edited下的两个选项clean archives (categories, tags, ..., but not the home) 和clean the home 。意为当发布或编辑一篇文章后清理文章存档和主页的缓存,这可以为读者呈现最新的网站内容。Bypasses选项卡勾选如下三个选项:Do not cache the "404 - Not found" pageDo not cache the blog main feedsDo not cache single post comment feed意为不缓存404页面和博客及评论Feed订阅页面。另外你还可以勾选Exact URIs to bypass(不缓存指定的网址)和(Starting with) URIs to bypass(不缓存以指定名称开头的网址),不过需要在文本框中设置具体的网址字符。Mobile选项卡如果你的网站为移动设备启用了专门的移动主题,三好公民发现启用Hyper Cache后在手机上查看主页依然是PC桌面主题,既然在下面Mobile theme指定了移动主题问题依旧。只有把Wor
...
继续阅读
(45)