Linux 软件免费装
Banner图

NiroCache – Simple Page Cache, Preload and Speed Optimization

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

标签

speed cache performance page cache minify

下载

0.9 1.0.0 1.0.1

详情介绍:

Website | NiroSuite | Contact Choose a preset. NiroCache handles the rest. 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 from a single file. It works the moment you activate it. Standard mode is already selected: page caching, preloading, compression and minification start with safe defaults, and logged-in visitors, carts and checkouts are never cached. When you want more control, pick another preset or switch to Custom. Performance modes Page cache Smart purging Preloading and cache warming Optimization Dashboard Server screen Safe by default These are never cached: logged-in users, commenters, carts, checkout and account pages, search results, previews, password-protected content, 404 pages, feeds, REST API and AJAX requests, and form submissions. Pages that define DONOTCACHEPAGE or send Cache-Control: no-cache, no-store or private are respected. You can also exclude URLs (with * wildcards), cookies, user agents, post types, and single pages with Don't cache this page in the editor. Compatibility What NiroCache changes on your site Page caching in WordPress needs a few things outside the plugin folder. NiroCache sets them up for you, only where no other plugin is in charge, and removes only what it added: Cached pages, minified files and statistics are stored in wp-content/cache/nirocache/. NiroCache never overwrites another plugin's advanced-cache.php or object-cache.php. Privacy NiroCache does not collect or send any data, and has no account, API key or cloud service. The cache test, preloading and server checks only send requests from your server to your own site. Cached copies only ever contain pages as seen by visitors who are not logged in. Statistics are simple daily counts stored on your server. For developers Filters: Actions: Set the NIROCACHE_CACHE_DIR constant in wp-config.php to store cached pages somewhere else. The admin screen is a React app. Its source is included in the plugin (spa/, package.json, webpack.config.js); build/ is compiled from it with yarn build.

安装:

  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 in Standard mode.
  3. Open NiroCache in the admin menu to see the dashboard, and click Run cache test to confirm pages are being served from the cache.
If the dashboard 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 );

屏幕截图:

  • Cache hit rate over time, why pages were not cached, and preload progress.
  • Performance modes: choose Basic, Standard, Aggressive or Custom.
  • Optimization settings for HTML, CSS and JavaScript. Settings marked "Preset" are set by the performance mode.
  • Preload settings: sources, cache warming and pacing.
  • The Server screen: web server, PHP, OPcache, compression, object cache and hosting cache at a glance.

升级注意事项:

1.0.0 Adds performance modes, a new dashboard with statistics, preloading, optimization and server rules. Requires WordPress 6.2. After updating, open NiroCache to choose a performance mode.

常见问题:

Which performance mode should I choose?

Keep Standard, which is already selected. It adds preloading and minification on top of safe page caching. Choose Basic for membership or highly dynamic sites, or if anything looks wrong after minification. Aggressive also defers and delays JavaScript and caches approved query strings; try it if you are happy to test your key pages afterwards, because some sites need exclusions.

Why did my mode change to Custom?

Changing any setting that a preset controls switches you to Custom, and NiroCache asks before it does. Nothing changes on your site until you save. Your last Custom combination is remembered, so you can go back to a preset and return to your own setup later.

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 personal content. Click Run cache test on the dashboard, 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 dashboard. 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 under Settings, Advanced, and look for X-Niro-Cache: HIT in your browser's developer tools while logged out. The dashboard charts show how many pages are served from the cache each day.

How do I turn NiroCache off without deactivating it?

Use the On/Off switch next to the Dashboard title. Off pauses everything NiroCache does to your site and clears cached pages; your settings are kept, and turning it back on restores everything. It is the quickest way to check whether a problem comes from NiroCache.

Will minifying or delaying JavaScript break my site?

Minified files are copies kept in the cache folder; your theme and plugin files are never modified. Defer and delay are only on in Aggressive mode, and payment, checkout and consent scripts are never delayed. If something looks wrong, add the script to the JavaScript exclusions under Settings, Optimization, or switch back to Standard or Basic.

Does it work with WooCommerce?

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

Which web servers are supported?

Any server that runs WordPress: Apache, Nginx, LiteSpeed and others. The early cache works everywhere with no server configuration. On Apache and LiteSpeed, NiroCache can also add browser caching, compression and direct delivery rules to .htaccess; on Nginx, the Server screen shows a configuration snippet you can add if you want Nginx to deliver cached pages itself.

Can I use it together with another caching plugin, or my host's cache?

Running two page caches at once causes unexpected behavior, so NiroCache warns you when it detects another page cache or optimization plugin. It never overwrites another plugin's advanced-cache.php or object-cache.php. The Server screen also detects hosting caches such as LiteSpeed, Varnish, Cloudflare and managed hosts, and recommends what to do.

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 Settings > Exclusions > Never cache these URLs. Use /members/* to exclude a section and everything below it. You can also exclude cookies, user agents and post types there.

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.

Does preloading slow my server down?

Preloading requests your pages one at a time in small batches, with a pause between pages. You can lower the batch size or lengthen the pause under Settings > Preload, or turn sitemap preloading and cache warming off.

Does NiroCache work on multisite?

Yes. Each site keeps its own cache and settings. Super admins can clear every site's cache at once from the admin toolbar.

What happens when I deactivate or delete NiroCache?

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

更新日志:

1.0.1 0.9 0.8.1 0.8