Title: Cachify
Author: pluginkollektiv
Published: <strong>2011年1月9日</strong>
Last modified: 2025年6月20日

---

搜尋外掛

![](https://ps.w.org/cachify/assets/banner-772x250.png?rev=2505413)

![](https://ps.w.org/cachify/assets/icon-256x256.png?rev=2505413)

# Cachify

 由[pluginkollektiv](https://profiles.wordpress.org/pluginkollektiv/)

[下載](https://downloads.wordpress.org/plugin/cachify.2.4.2.zip)

 * [詳情](https://zh-hk.wordpress.org/plugins/cachify/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/cachify/#reviews)
 *  [安裝](https://zh-hk.wordpress.org/plugins/cachify/#installation)
 * [開發](https://zh-hk.wordpress.org/plugins/cachify/#developers)

 [支援](https://wordpress.org/support/plugin/cachify/)

## 描述

_Cachify_ optimizes your page loads by caching posts, pages and custom post types
as static content. You can choose between caching via database, on the web server’s
hard drive (HDD), Memcached (only on Nginx) or Redis. Whenever a page or post is
loaded, it can be pulled directly from the cache. The amount of database queries
and PHP requests will dramatically decrease towards zero, depending on the caching
method you chose.

### Features

 * Works with custom post types.
 * Caching methods: DB, HDD, Redis and Memcached.
 * “Flush Cache” button in the WordPress toolbar.
 * Ready for WordPress Multisite.
 * Optional compression of HTML markup.
 * White lists for posts and user agents.
 * Manual and automatic cache reset.
 * Automatic cache management.
 * Dashboard widget for cached objects.
 * Settings for Apache and Nginx servers.
 * Extendability via hooks/filters.

### Support

 * Community support via the [support forums on wordpress.org](https://wordpress.org/support/plugin/cachify/)
 * We don’t handle support via e-mail, Twitter, GitHub issues etc.

### Contribute

 * Active development of this plugin is handled [on GitHub](https://github.com/pluginkollektiv/cachify).
 * Pull requests for documented bugs are highly appreciated.
 * If you think you’ve found a bug (e.g. you’re experiencing unexpected behavior),
   please post at the [support forums](https://wordpress.org/support/plugin/cachify/)
   first.
 * If you want to help us translate this plugin you can do so [on WordPress Translate](https://translate.wordpress.org/projects/wp-plugins/cachify/).

### Credits

 * Author: [Sergej Müller](https://sergejmueller.github.io)
 * Maintainers: [pluginkollektiv](https://pluginkollektiv.org)

## 螢幕截圖

 * [[
 * Cachify Dashboard Widget
 * [[
 * Cachify settings
 * [[
 * Flush Cache button in admin bar

## 安裝

 * If you don’t know how to install a plugin for WordPress, [here’s how](https://wordpress.org/support/article/managing-plugins/#installing-plugins).

### Requirements

 * PHP 5.6 or greater
 * WordPress 4.7 or greater
 * Memcached in Nginx (optional)
 * Redis (optional, via the phpredis module)

## 常見問題

### No cache expiration option while using HDD cache?

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 Fatal error: Cannot use output buffering in output buffering display handlers in Unknown on line 0

This error message may occur after commissioning the caching plugin. 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.

### My Website looks in some parts broken after activating 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](https://wordpress.org/support/plugin/cachify/). With 
this feature any unnecessary characters such as breaks and HTML comments are removed
from the source code.

### Cachify HDD: Character encoding does not work correctly

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 with CDN support?

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.

### When does Cachify automaticaly flush its cache?

 * After publishing new posts
 * After publishing new pages
 * After publishing new custom post types
 * After publishing new sheduled posts (only Cachify DB)
 * After updating WordPress
 * If you confirm the trash button on the adminbar
 * After saving Cachify and wpSEO settings

### Which parts of the website are not cached by default?

 * Password protected pages
 * Feeds
 * Trackbacks
 * Robots
 * Previews
 * Mobile-themes (WP-Touch, Carrington, Jetpack Mobile)
 * Search
 * Error pages

### The cache folder is indexed by search engines!

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: /
    ```

A complete documentation is available in the [online handbook](https://cachify.pluginkollektiv.org/documentation/).

## 評價

![](https://secure.gravatar.com/avatar/1af6576b77bb9a70f3e5be2921769896502f27e43d7ac83a1f1293cb414eea3c?
s=60&d=retro&r=g)

### 󠀁[Outstanding!!](https://wordpress.org/support/topic/outstanding-509/)󠁿

 [barnabas1](https://profiles.wordpress.org/barnabas1/) 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!

![](https://secure.gravatar.com/avatar/de108805ef5b5743876361ab518e9a18859b788ed3d27196a981c7a113daa5d5?
s=60&d=retro&r=g)

### 󠀁[Best caching plugin of all](https://wordpress.org/support/topic/best-caching-plugin-of-all/)󠁿

 [James Hunt](https://profiles.wordpress.org/rite8rite/) 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.

![](https://secure.gravatar.com/avatar/47ac30f247a1e1dc199682b8729698963816c0fecdd38cfa9b24b990079f62ca?
s=60&d=retro&r=g)

### 󠀁[Object-caching for free and excellent working](https://wordpress.org/support/topic/object-caching-for-free-and-excellent-working/)󠁿

 [raulmuroc](https://profiles.wordpress.org/raulmuroc/) 2020年8月17日

Excellent plugin, works nice doing object caching and improving the overwall wordpress
site performance. 100% free!

![](https://secure.gravatar.com/avatar/93e8a924bd86a93a3add2c97a53930d4e7acb927b69708cf81b9d11ffdb9dc0d?
s=60&d=retro&r=g)

### 󠀁[Bad plugin! 🙁](https://wordpress.org/support/topic/bad-plugin-106/)󠁿

 [C77](https://profiles.wordpress.org/c77/) 2020年6月12日

It crashed my website.

![](https://secure.gravatar.com/avatar/cc5bdf38c6ca8ebe8992723cf85a8dc040d8eafe9998bf70a21abadf607b1971?
s=60&d=retro&r=g)

### 󠀁[Useful and Simple](https://wordpress.org/support/topic/useful-and-simple-26/)󠁿

 [ram108](https://profiles.wordpress.org/ram108/) 2019年10月19日

Thank you!

![](https://secure.gravatar.com/avatar/99bdc5c929a4048fafb3c6e0518931a448341c9e7238610b977be00d443b1f2b?
s=60&d=retro&r=g)

### 󠀁[Great caching Plugin for WordPress](https://wordpress.org/support/topic/great-caching-plugin-for-wordpress/)󠁿

 [mapdi](https://profiles.wordpress.org/mapdi/) 2019年9月10日

Cachify is still one of my favorite caching solutions for WP since 2011 … 🙂

 [ 閱讀全部47個評價 ](https://wordpress.org/support/plugin/cachify/reviews/)

## 貢獻者及開發者

“Cachify” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

 *   [ pluginkollektiv ](https://profiles.wordpress.org/pluginkollektiv/)

Cachify 外掛目前已有 12 個本地化語言版本。 感謝[所有譯者](https://translate.wordpress.org/projects/wp-plugins/cachify/contributors)
為這個外掛做出的貢獻。

[將 Cachify 外掛本地化為台灣繁體中文版。](https://translate.wordpress.org/projects/wp-plugins/cachify)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/cachify/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/cachify/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/cachify/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/cachify/)。

## 修改日誌

### 2.4.2

 * Fix: Missing dependencies shown in Query Monitor (#312) (#326)
 * Maintenance: Tested up to WordPress 6.8

### 2.4.1

 * Fix: validation of Redis context parameters array in server hook no longer fails(#
   315) (#317)
 * Enhance: move some settings related code out of main class (#321)
 * Maintenance: Tested up to WordPress 6.7

### 2.4.0

Requires PHP 5.6 and WordPress 4.7 or above

 * New: introduce Redis (also KeyDB and Valkey) support using the _phpredis_ module(#
   253), (#252, props @newtovaux)
 * New: add `cachify_modify_output` filter
 * New: add `cachify_create_gzip_files` to disable creation of static GZip files(#
   262, props @angcl)
 * New: add hooks `cachify_removed_cache_by_url` and `cachify_flushed_total_cache`
   for additional actions after clearing (#294, props @ouun)
 * Removed: APC support (#304)
 * Enhance: adjust styling for setup instructions (#215, props @timse201)
 * Enhance: update hooks for Multisite initialization in WordPress 5.1 and above(#
   246, props @ouun)
 * Enhance: rework flush hooks and add some third-party triggers for Autoptimize
   and WooCommerce (#225, props @timse201)
 * Enhance: clean up some internal error suppressions (#256)
 * Enhance: inform user on cache clear in admin bar (#257, props @angcl)
 * Enhance: do not flush the cache for post revisions (#261, props @angcl)
 * Enhance: prevent unnecessary cache clearing in some cases (#223) (#224, props
   @timse201)
 * Enhance: remove empty directories when clearing the HDD cache (#289)
 * Enhance: introduce common interface for caching backends (#298, props @lloc)
 * Enhance: enhance examples for .htaccess and nginx configuration (#302)
 * Enhance: show admin notice instead of silent fallback to DB cache, if selected
   backend is unavailable (#305)
 * Enhance: disable gzip creation of required PHP extension is missing (#308)
 * Enhance: various internal code clean ups
 * Fix: invalidate cache when permalink changes (#285, #286, props @raffaelj)
 * Fix: remove empty directories when pruning the HDD cache (#289)
 * Fix: correctly add user-agent to robots.txt (#282) (#283)
 * Fix: exclude _sitemap.xml_ from caching (#242) (#254)
 * Fix: prevent cache generation of non-GET requests (#200) (#258)
 * Fix: prevent cache generation of requests with status different from 200 OK (#
   266) (#267, props @karlkowald)
 * Fix: prevent cache generation of non-HTML responses when using content negotiation(#
   265) (#273, props @Ancocodet)
 * Fix: fix styling for various dark mode plugins (#264) (#278)
 * Fix: fix SVG markup for icons in dashboard widget (#269, props @Latz)
 * Fix: added missing .gz suffix in htaccess (#287) (#291, props @raffaelj)
 * Fix: fix some brand names and unify spelling (#297, props @pedro-mendonca)
 * Maintenance: Tested up to WordPress 6.6

### 2.3.2

 * Fix: enforce WordPress environment for caching modules (#221, props timse201)
 * Fix: Remove unnecessary build artifacts from plugin deployment (#226)
 * Fix: Fix input sanitization for APC proxy (#240) (#241)
 * Maintenance: Remove unused language folder (#214, props timse201)
 * Maintenance: Update documentation links (#211, #212, props timse201)
 * Maintenance: Update documentation links (#213, props timse201)
 * Maintenance: More precise tags in README file (#216, props timse201)
 * Maintenance: Tested up to WordPress 5.8

### 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

 * Fixes caching for mixed HTTPS and HTTP setups
 * Fixes an issue with the icon styling in the admin toolbar
 * Ensures compatibility with the latest WordPress version

### 2.2.3

 * New: Generated a POT file
 * New: Added German formal translation
 * Updated, translated + formatted README.md
 * Updated expired link URLs in plugin and languages files
 * Updated [plugin authors](https://gist.github.com/glueckpress/f058c0ab973d45a72720)

### 2.2.2

 * Fix: parameter return by filter `dashboard_glance_items`
 * Generous use of the filter `esc_html`

### 2.2.1

 * Fix for the PHP notice “Call to undefined function is_plugin_active_for_network”
   on WordPress Multisite

### 2.2.0

 * Toolbar: Display of the “Flush the Cachify cache” button on the frontend
 * Toolbar: Controlling the display of the “Flush the Cachify cache” button via 
   hook

For the complete changelog, check out our [GitHub repository](https://github.com/pluginkollektiv/cachify).

## 其它

 *  Version **2.4.2**
 *  Last updated **10 個月之前**
 *  Active installations **9,000+**
 *  WordPress version ** 4.7 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [Chinese (China)](https://cn.wordpress.org/plugins/cachify/)、[Dutch](https://nl.wordpress.org/plugins/cachify/)、
   [English (US)](https://wordpress.org/plugins/cachify/)、[French (France)](https://fr.wordpress.org/plugins/cachify/)、
   [German](https://de.wordpress.org/plugins/cachify/)、[German (Austria)](https://de-at.wordpress.org/plugins/cachify/)、
   [German (Switzerland)](https://de-ch.wordpress.org/plugins/cachify/)、[Italian](https://it.wordpress.org/plugins/cachify/)、
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/cachify/)、[Russian](https://ru.wordpress.org/plugins/cachify/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/cachify/)、[Spanish (Spain)](https://es.wordpress.org/plugins/cachify/)、
   及 [Turkish](https://tr.wordpress.org/plugins/cachify/).
 *  [翻譯成你的語言](https://translate.wordpress.org/projects/wp-plugins/cachify)
 * Tags
 * [cache](https://zh-hk.wordpress.org/plugins/tags/cache/)[caching](https://zh-hk.wordpress.org/plugins/tags/caching/)
   [Optimize](https://zh-hk.wordpress.org/plugins/tags/optimize/)[performance](https://zh-hk.wordpress.org/plugins/tags/performance/)
   [speed](https://zh-hk.wordpress.org/plugins/tags/speed/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/cachify/advanced/)

## 評分

 4.7 out of 5 stars.

 *  [  42 5-star reviews     ](https://wordpress.org/support/plugin/cachify/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/cachify/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/cachify/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/cachify/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/cachify/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/cachify/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cachify/reviews/)

## 貢獻者

 *   [ pluginkollektiv ](https://profiles.wordpress.org/pluginkollektiv/)

## 支援

有話想說？需要協助？

 [檢視支援論壇](https://wordpress.org/support/plugin/cachify/)

## 捐贈

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW)