Linux 软件免费装
Banner图

Zinn® Cache

开发者 zinndigital
更新时间 2026年10月26日 03:33
PHP版本: 8.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

cache page cache varnish redis nginx

下载

1.10.10 1.11.1 1.9.13 1.9.11 1.6.0 1.9.12 1.10.8 1.10.7 1.10.9 1.3.4 1.3.6 1.5.0 1.3.5 1.7.6 1.7.7 1.8.0 1.8.1 1.8.4 1.9.1 1.8.2 1.9.2 1.8.3 1.9.6 1.9.0 1.9.4 1.9.7 1.9.8 1.9.9 1.9.10 1.9.3 1.9.5 1.10.0 1.9.14 1.9.15 1.10.1 1.10.2 1.10.5 1.10.6 1.3.2 1.11.0 1.7.2

详情介绍:

Zinn® Cache makes a WordPress site faster wherever it is hosted. On a LiteSpeed server it drives the server's own page cache. When nginx, Varnish or Apache already caches pages in front of WordPress, it does not add a second page cache behind them: it tells them which pages changed. On any other server it stores each page as a file and serves it before WordPress loads. It also installs a Redis object cache that proves it is working, and purges only the pages a change affects. It is installed for you on sites hosted with Zinn Digital®, and it works the same way on any other host. There is one Zinn® cache plugin; Zinn® Cache Pro is an optional add-on that installs on top of it (see Pro features below). What it does Remote purging A REST endpoint, POST /wp-json/zinn-cache/v1/purge, purges everything, specific URLs, or specific tags. It accepts a logged-in administrator, or any caller holding the site's ZINN_CACHE_PANEL_SECRET who signs the request body with it (HMAC-SHA256) — so a deploy script or your own tooling can clear the cache. Your Zinn® dashboard does not call it today; there is no dashboard purge button for this plugin yet. Pro features Everything above is free and stays free. Zinn® Cache Pro is an add-on that installs on top of this plugin and adds: Pro costs $49 a year for one site, $99 for five sites and $199 for unlimited sites, and every plan starts with a 14-day free trial, no card needed. Start it from the Pro tab of the Zinn® Cache screen.

安装:

  1. Upload the zinn-cache folder to /wp-content/plugins/ (this is done automatically as part of the Zinn® deploy footprint).
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Zinn Digital® → Cache to configure the full-page cache, object cache, auto-purge, and exclusions.
Optionally define these constants in wp-config.php (set automatically on Zinn-hosted sites):

屏幕截图:

  • The Purging tab: clear only the affected pages when content changes, clear everything after an update, and the tools to purge by hand or export your settings.
  • The Exclusions tab: addresses, query parameters and cookies that are never cached, on top of the WordPress and WooCommerce defaults that always apply.
  • Every screen is translated — here the Page cache tab in Arabic, right to left.

升级注意事项:

1.1.2 Stops the plugin re-downloading and re-installing itself on every update check. No settings change. 1.1.1 Site-wide settings changes now purge the page cache. No settings change. 1.1.0 Adds the Zinn® panel to the WordPress admin. No settings change. 1.0.0 Initial release.

常见问题:

My host runs nginx. How do I set up Zinn® Cache?

Open Zinn Digital® → Cache → Status and press Check now. If nginx caches your pages, the screen says so and Zinn® Cache does not install its own page cache behind it. Then open the Server cache tab, choose nginx, and choose how to purge it: a purge request per page if your nginx has the ngx_cache_purge module (set "Send purges to" to http://127.0.0.1 when a CDN is in front); delete the cache files if WordPress can read the folder in your proxy_cache_path or fastcgi_cache_path line (copy the folder, the levels= value and your cache key); or write the addresses to a folder your host's purger reads. Save, then purge one address from the Status tab and check that its next visit says MISS. If nginx does not cache your pages at all, choose None and Zinn® Cache's own page cache does the job.

Varnish, Apache mod_cache or Cloudflare?

Varnish: choose Varnish, give its address and port, and allow PURGE (or BAN) from this server in your VCL. Apache: put mod_cache in a reverse-proxy virtual host in front of WordPress — inside the same server as WordPress's own rewrite rules, Apache stores every address as /index.php and can serve one page for all of them; the status screen warns when it sees that. Cloudflare: switch on Cloudflare purge and paste a zone ID and a token limited to Cache Purge.

Why does an update no longer empty the cache?

Because emptying it sends every visitor and every crawler to WordPress in the same minute, and on a large site that can take the server down. Updates, plugin activations, theme and menu changes start a paced refresh: every page is refreshed, a batch a minute, newest first, until the whole site is done, and the refresh pauses while the server is busy. Empty all now on the settings screen empties everything at once when you want that.

Why is there no "combine CSS/JS", "minify" or "separate mobile cache" option?

On purpose. Combining files was a workaround for HTTP/1.1; on HTTP/2 and HTTP/3 it makes pages slower to start and breaks caching of shared files, which is why other cache plugins have been retiring it. Minifying saves a few percent once files are compressed (gzip or Brotli) and is the most common cause of a broken layout after installing a cache plugin. A separate mobile cache doubles every cached page and every server-cache key for themes that are responsive anyway; Zinn® Cache Pro's warm-up can warm a mobile pass for the few sites that do serve phones a different page.

Does this require LiteSpeed?

Full-page caching requires a LiteSpeed web server (or the third-party LiteSpeed Cache plugin). On any other server nothing reads the cache headers, so pages are not cached — and the settings screen says so plainly rather than looking as if it works. Everything else (object cache, exclusions, and the signed purge endpoint) still works.

Does it conflict with the LiteSpeed Cache plugin?

No. If the LiteSpeed Cache plugin is active, Zinn® Cache defers page caching to it and routes purges through its public actions.

What happens if Redis is unavailable?

The object cache is optional. If the phpredis extension is missing the toggle is disabled with a notice; if Redis becomes unreachable at runtime, the drop-in serves from a per-request in-memory cache so the site never breaks.

How do I clear the cache from the command line?

With WP-CLI: wp zinn-cache purge all empties every cached page, wp zinn-cache purge url https://example.com/pricing/ (or just /pricing/) empties those pages, and wp zinn-cache purge post 42 empties a post's page and the lists it appears on. Each prints how many stored pages it removed. On a LiteSpeed server the purge is sent to the server with the next request, which the command makes itself.

更新日志:

1.11.1 1.11.0 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.15 1.9.14 1.9.13 1.9.12 1.9.11 1.9.10 1.9.9 1.9.8 1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2 1.9.1 1.9.0 1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 1.7.7 1.7.6 1.7.5 1.7.4 1.7.3 1.7.2 1.7.1 1.7.0 1.6.0 1.5.0 1.4.0 1.3.7 1.3.6 1.3.5 1.3.4 1.3.3 1.3.1 1.3.0 1.2.3 1.2.2 1.2.1 1.2.0 Settings moved under the one Zinn Digital® menu, with per-post-type cache lifetimes, a browser-cache lifetime, a signed-in-visitor rule, a purge-on-comment switch, a Redis password field, and a status panel that tells you when the server is not LiteSpeed and the cache is therefore doing nothing. 1.1.2 1.1.1 1.1.0 1.0.0