Linux 软件免费装
Banner图

NiroCache

开发者 easycommerce
更新时间 2026年9月16日 17:50
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

speed cache performance page cache static html

下载

0.9

详情介绍:

NiroCache makes your site faster by saving each page as a static HTML file and serving that file to visitors before WordPress even loads. Pages that took hundreds of milliseconds to build are delivered in a few. It works the moment you activate it. There are no presets to study and no settings you have to change: sensible, safe defaults are already in place. How it works
  1. The first visitor to a page gets it generated by WordPress as usual. NiroCache saves a copy in wp-content/cache/nirocache/.
  2. Every following visitor who is not logged in gets that copy straight from the early-cache file, skipping PHP templates and database queries.
  3. When you update content, NiroCache clears exactly the pages that show it, so visitors never see outdated content.
Features What NiroCache changes on your site Page caching in WordPress needs two things outside the plugin folder. NiroCache sets them up for you and removes only what it added: Cached pages are stored in wp-content/cache/nirocache/. That directory holds data only: rendered HTML, a small JSON settings file per site, and empty marker files. NiroCache reads them as data and never executes anything it writes there. They are deleted when you deactivate the plugin, and the whole directory is removed when you delete the plugin. Privacy NiroCache does not collect or send any data. The cache test makes two requests from your server to your own home page and nowhere else. Cached copies only ever contain pages as seen by visitors who are not logged in. For developers Filters: Actions: Set the NIROCACHE_CACHE_DIR constant in wp-config.php to store cached pages somewhere else.

安装:

  1. In your dashboard, go to Plugins > Add New Plugin, search for "NiroCache", then click Install Now. Or upload the nirocache folder to /wp-content/plugins/.
  2. Activate the plugin. Caching starts immediately.
  3. Open NiroCache in the admin menu to see the cache status and click Run cache test.
If the status says WP_CACHE is off because wp-config.php is not writable, add this line near the top of wp-config.php, above the line that says "That's all, stop editing!": define( 'WP_CACHE', true );

常见问题:

Why don't I see cached pages while I'm logged in?

Logged-in users always get freshly generated pages, so nobody ever sees someone else's personalised content. Click Run cache test on the NiroCache screen, or open your site in a private browser window, to see what visitors get.

How do I know caching is working?

Click Run cache test on the NiroCache screen. It requests your home page twice and reports whether the second request was served from the cache, or why it was not. You can also turn on Debug headers and look for X-Niro-Cache: HIT in your browser's developer tools while logged out.

Does it work with WooCommerce?

Yes. Cart, checkout and account pages are never cached, visitors with items in their cart always get fresh pages, and product pages are cleared when their stock changes. Easy Digital Downloads checkout pages are excluded too.

Which web servers are supported?

Any server that runs WordPress: Apache, Nginx, LiteSpeed and others. NiroCache uses the standard WordPress early-cache file, so no server configuration is needed.

Can I use it together with another caching plugin?

Running two page caches at once causes unexpected behavior, so NiroCache warns you when it detects one. Deactivate the other plugin's page cache, or turn off NiroCache's page cache. NiroCache never overwrites another plugin's advanced-cache.php.

How do I exclude a page from the cache?

Tick Don't cache this page in the NiroCache box of the page editor, or add its path under Exclusions > Never cache these URLs on the NiroCache screen. Use /members/* to exclude a section and everything below it.

Forms on my site say the link has expired.

WordPress form security tokens expire after 12 to 24 hours. Keep the cache lifespan at 10 hours (the default) or lower on sites with forms.

How long are pages cached?

10 hours by default. Updating content clears the affected pages immediately, so the lifespan only matters for changes NiroCache cannot detect. You can choose from 1 hour to 7 days, or never expire.

What happens when I deactivate or delete NiroCache?

Deactivating removes the early-cache file and the WP_CACHE line NiroCache added, and deletes cached pages; your settings are kept. Deleting the plugin also removes its settings and the whole cache directory.

更新日志:

0.9 0.8.1 0.8