Linux 软件免费装
Banner图

GetPageSpeed Cache Configuration

开发者 dvershinin
更新时间 2026年11月14日 16:52
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: MIT
版权网址: 版权信息

标签

cache page cache wp super cache wp rocket nginx

下载

1.2.1 1.3.0 1.4.0

详情介绍:

GetPageSpeed Cache Configuration generates the Nginx configuration that locates page-cache files on disk and serves them directly, without starting PHP. It works with WP Rocket and WP Super Cache. The plugin detects which one is active and mirrors the settings that decide how cache files are named and when a request must bypass the cache. The cache plugin is still required to create and purge the page cache. A built-in check confirms that Nginx actually loaded the generated file, and tells you when Nginx has not been reloaded since the last change. The same check finds out whether Nginx compresses pages with Brotli. WP Rocket writes gzip files only. When Brotli is in use, clients that accept it get the page compressed with Brotli by Nginx. When it is not, they get WP Rocket's pre-compressed gzip file instead of a page that Nginx gzips again on every request. The WP Rocket template is derived from the MIT-licensed Rocket-Nginx project by Maxime Jobin and SatelliteWP. The WP Super Cache rules follow the conditions of the Apache rules that WP Super Cache itself generates. This plugin is made by GetPageSpeed. It is not affiliated with or endorsed by WP Media (WP Rocket), Automattic (WP Super Cache), SatelliteWP (Rocket-Nginx), or F5 (NGINX). Brotli Brotli makes pages smaller than gzip, and Nginx needs a module for it. One is available from the GetPageSpeed repository, a subscription service with a free 30-day trial. Any Brotli module works: the plugin looks for Brotli in the responses of your site, not for a particular package. Monitor your server This plugin lets Nginx answer without PHP, but is Nginx itself healthy? If you run your own server, GetPageSpeed Amplify charts its requests, errors and configuration issues over time, with a free tier.

安装:

  1. Upload and activate the plugin.
  2. Open Settings > GetPageSpeed Cache Configuration.
  3. Include the displayed default.conf path in the site's Nginx server block.
  4. Run nginx -t and reload Nginx.
  5. Press "Check Nginx include" on the settings page to confirm Nginx loaded the file.

升级注意事项:

1.4.0 Press "Check Nginx include" once after upgrading so the plugin learns whether Brotli is in use, then reload Nginx if it reports a regenerated configuration. 1.3.0 Adds WP Super Cache support and an include check. The include line does not change; reload Nginx once to enable the check. 1.2.0 The configuration file moved to the uploads directory. Update the Nginx include line shown under Settings > GetPageSpeed Cache Configuration, then reload Nginx.

常见问题:

Does this replace WP Rocket or WP Super Cache?

No. The cache plugin creates and purges the cache files. This plugin lets Nginx locate and serve those files without starting PHP.

Which cache plugin is used when I switch?

The active one. The configuration is regenerated the next time you open the WordPress admin; reload Nginx afterwards.

Do WP Super Cache settings apply?

Yes: compression, mobile device support, extra and rejected cookies, ignored tracking parameters and the "disable caching for visitors who have a cookie" option. Addresses containing uppercase letters are answered by PHP.

Does the plugin reload Nginx?

No. Reloading the web server is deliberately left to the server operator.

I enabled Brotli in Nginx. What now?

Press "Check Nginx include". The check sees Brotli in the response of the front page and regenerates the configuration; reload Nginx once more to apply it.

Does the plugin contact external servers?

No. The checks request addresses on your own site only. The links to GetPageSpeed services on the settings page are plain links.

Where is the configuration written?

To the uploads directory: wp-content/uploads/getpagespeed-cache-configuration/default.conf. The generated configuration denies HTTP access to that file.

更新日志:

1.4.0 1.3.0 1.2.1 1.2.0 1.1.0 1.0.0