Cachify

描述

Cachify通过缓存文章、页面和自定义文章类型为静态内容来优化您的页面加载速度。你可以从以下几个缓存方式中选择:数据库、服务器硬盘(HDD)、Memcached(仅在Nginx上可用)或 APC(Alternative PHP Cache)——直接在Web服务器的系统缓存中。用户访问时,页面或文章可直接从缓存中拉取。数据库和查询和PHP请求数可显著减少,如果选择了合适的缓存方式,这个数字可能为0。

功能

  • 适用于自定义文章类型。
  • 缓存方法:DB, HDD, APC 和 Memcached.
  • WordPress 工具条中的 “清空缓存” 按钮。
  • WordPress Multisite 可用。
  • 可选的 HTML 标记压缩。
  • 文章和用户代理白名单。
  • 手动和自动缓存重置。
  • 自动缓存管理
  • 缓存对象的仪表板小工具。
  • Apache 和 Nginx 服务器的设置。
  • 可以通过 hooks/filters 扩展。

帮助

  • 通过 wordpress.org 支持论坛 获得社区支持。
  • 我们不处理通过电子邮件,Twitter,GitHub 等渠道提交的支持请求。

贡献

  • 该插件在在GitHub上进行开发。
  • 对有文档记录 Bug 的拉取请求非常受欢迎。
  • 如果你认为自己发现了一个 Bug (如: 遇到意外行为), 请先通过 支持论坛 提交。
  • 如果您想帮助我们翻译此插件,可以在WordPress Translate上进行

鸣谢

屏幕截图

  • Cachify 仪表盘小工具
  • Cachify设置
  • 管理栏中的“刷新缓存”按钮

安装

  • 如果你不知道怎么为 WordPress 安装插件, 请参考这里.

要求

  • PHP 5.2.4 或更高版本
  • WordPress 3.8或更新版本
  • APC 3.1.4 或更高版本 (可选)
  • Memcached 配合 Nginx (可选)

常见问题

使用硬盘缓存时没有缓存过期选项?

The cache expiration can not be considered due to technical reasons. If the cache stock has to be emptied at certain time intervals, then it is recommended to call a prepared PHP file by a cronjob.

PHP致命错误:无法在第0行的Unknown中的输出缓冲显示处理程序中使用输出缓冲

This error message may occur after commissioning the caching plug-in. The hint appears because there are no cache files on the HDD for output. This is probably due to the fact that Cachify could not store files in the cache folder. Please check the write-permissions for the cache folder (found in the WordPress directory wp-content) and set them if necessary.

激活Cachify后,我的网站的某些部分损坏了!

Please make sure there is no issue that caused by the Cache minify feature. Just deactivate it or use HTML only. If the issue still exist please feel free to report it at the support forums. With this feature any unnecessary characters such as breaks and HTML comments are removed from the source code.

Cachify HDD:字符编码不正确

If you use Cachify to store the cache on HDD there is no PHP to run. In the case of misconfigured servers, this can lead to incorrect display of the special characters on web pages. The error can be corrected by an extension of the system file .htaccess: AddDefaultCharset UTF-8

Cachify支持CDN吗?

Currently the caching plugin for WordPress has no connection to a CDN provider. Although the Buzzword CDN (Content Delivery Network) is praised as a performance factor, CDN makes little sense for WordPress websites with a national audience. In this case, a home host could provide the requested files faster than a worldwide CDN service provider because the next node could be far away.

PHP OPcache可以用作一种缓存方式吗?

与APC(备用PHP缓存)不同,PHP OPCache不能包含带有自定义键和值的内容。所以,Cachify无法将PHP OPCache作为一种缓存方法。

Cachify 什么时候自动刷新缓存?

  • 发布新文章后
  • 发布新页面后
  • 发布在你的自定义文章类型文章后
  • 发布新的计划文章后(尽在BD模式下有效)
  • 更新WordPress后
  • 点击了管理工具条上的「刷新缓存」按钮
  • 保存 Cachify 和 wpSEO 设置之后

默认不缓存网站的哪些部分?

  • 受密码保护的页面
  • 订阅源
  • 引用通告
  • 机器人爬虫
  • 预览
  • 移动主题 (WP-Touch, Carrington, Jetpack Mobile)
  • 搜索
  • 错误页面

缓存目录被搜索引擎索引

To ensure that Google and other search engines do not index the static contents of the cache folder (otherwise there could be duplicate content), the robots.txt file which is located in the main directory of a WordPress installation should be expanded by disabling the path to the cache file (disallow). This issue should only happen if you use a static robots.txt or you changed the wp-content location. And so might look a robots.txt:

User-agent: *
Disallow: */cache/cachify/
Allow: /

完整的文档可以在 GitHub repository Wiki中找到。

评价

2021年7月21日
I'm simply amazed at how simple and super quick this plugin is. Even if I was sponsored to use another caching plugin I simply wouldn't!
2021年5月31日
I rarely write review but this plugin is really well deserved. Certainly this is a reliable caching plugin can go against the major competitors out there. There are many reviews out there suggesting the load times are not as fast as other big players, but that is simply not true. I tested myself and can confirm this actually loads faster than those claimed to be faster in those popular reviews in the wild. This plugin only do 1 thing unlike its competitor and it nailed it! I particular like the built-in compatibility with other plugins I've used, non-intrusive at all, also the way it caches with its HDD mode, that's how a real cache mechanism should work. I have been using many of the popular caching plugin in my production sites, until I gave Cachify a try, and I am a totally satisfied with it. The only concerns for some people is the manual configuration on the htaccess file to make it work, but that's never an issue for me for just copy and paste a paragraph of setting into 1 file. Good work guys! Thank you for your great efforts developing this excellent plugin! Please keep this simple and free.
阅读所有47条评价

贡献者及开发者

“Cachify” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Cachify”插件已被翻译至9种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Cachify”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.3.1

  • Fix: clean up unused parameter evaluation after publishing a post to prevent PHP notice (#187) (#188)
  • Fix: correct minor spelling mistakes (#193, props timse201)
  • Fix: update support links (#194, props timse201)

2.3.0

  • New: WP-CLI integration (#165, props derweili)
  • New: cachify_flush_cache_hooks filter added to modify all hooks that flush the cache
  • New: Flush cache when a user is created / updated / deleted
  • New: Flush cache when a term is created / updated / deleted (#169, props derweili)
  • New: Cache behavior after post modification is now configurable in plugin settings (#176)
  • Enhance: Cache exceptions/User-Agents translation (#52, props timse201)
  • Enhance: Readme FAQ (#51, props timse201)
  • Enhance: sizeable exclusion boxes + placeholder (#53, props timse201)
  • Enhance: FAQ and Support links (#55, props timse201)
  • Enhance: Add text caption to “flush cache” button
  • Enhance: Icon font converted to SVG (#64)
  • Enhance: Improved HDD cache invalidation for hierarchical post types (#71, props Syberspace)
  • Enhance: Unified and shortened HTML signature across all caching methods (#108) (#109)
  • Security: Tabnabbing prevention (#55, props timse201)
  • Maintenance: Tested up to WordPress 5.4

2.2.4

  • 修复了混合 HTTPS 和 HTTP 设置的缓存
  • 修复了管理工具栏中图标样式的问题
  • 确保与最新的WordPress版本兼容

2.2.3

  • 新增:生成POT文件
  • 新增:添加德语翻译
  • 更新,翻译 + 格式化 README.md
  • 更新了插件和语言文件中过期的链接URL
  • 已更新 插件作者

2.2.2

  • 修复:通过过滤器dashboard_glance_items返回参数
  • 大量使用过滤器esc_html

2.2.1

  • 修复了WordPress Multisite上的PHP通知“对未定义函数is_plugin_active_for_network的调用”

2.2.0

  • 工具栏:在前端显示“刷新缓存”按钮
  • 工具栏:通过Hook控制“刷新缓存”按钮的显示

完整更新日志,请查看我们的 GitHub 仓库.