Linux 软件免费装
Banner图

WeAmp Cache Control for ModPageSpeed

开发者 oschaaf
更新时间 2026年6月18日 14:55
PHP版本: 8.1 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

cache performance optimization nginx page-cache

下载

0.1.0

详情介绍:

This plugin is the control panel for ModPageSpeed — a web server optimization module for nginx and Apache. ModPageSpeed must be installed and running on your server for this plugin to function. It is not a standalone caching plugin. The plugin does three things:
  1. Enables full-page caching — adds Cache-Control: public, max-age=N to anonymous page responses (WordPress does not send this by default), with explicit bypasses for logged-in users, WooCommerce cart/checkout/account pages, search, feeds, and 404s.
  2. Keeps the cache fresh — calls the ModPageSpeed purge API when you publish, update, or delete content, when comments change, when stock levels change, and when terms or theme settings change.
  3. Gives you control in WP Admin and WP-CLI — per-post-type TTLs, cookie bypass list, excluded URL patterns, a first-run setup wizard, and wp pagespeed flush|status|test-connection commands.
Works with both ModPageSpeed product lines (auto-detected), with one important difference: Server requirements WP-CLI License This plugin is free software, licensed under the GNU General Public License v2.0 or later. The full GPL-2.0 license text is bundled with the plugin in the LICENSE file.

安装:

  1. Install ModPageSpeed on your server (see https://modpagespeed.com/).
  2. Install and activate this plugin.
  3. Follow the setup wizard under Settings > ModPageSpeed: detect your server, enter the admin API URL, test the connection, apply the nginx.conf snippet, enable caching, and run a test purge.

屏幕截图:

  • Setup wizard: six guided steps from server detection to a verified purge.
  • Automatic server detection and connection test against the admin API.
  • The wizard hands you the exact nginx cookie-bypass snippet your deployment needs.
  • Final wizard check: a live test purge proves the invalidation path end to end.

升级注意事项:

0.1.0 Initial release.

常见问题:

Does this plugin cache pages itself?

No. Caching happens server-side: in the ModPageSpeed 2.0 module itself, or — on 1.1 — in your front cache (proxy_cache, Varnish, or CDN; the 1.1 module does not cache HTML, see the Description). The plugin only sets cache headers and sends purge requests — the same architecture as other server-layer cache plugins.

I run mod_pagespeed / ngx_pagespeed 1.1 — do I get full-page caching?

Not from the module alone. 1.1 never caches HTML; put an external cache (nginx proxy_cache, Varnish, or a CDN) in front of it and set ModifyCachingHeaders off (or use DownstreamCachePurgeLocationPrefix) so this plugin's Cache-Control headers reach that cache. The plugin's purge calls on 1.1 evict optimized sub-resources and metadata.

Does it work without ModPageSpeed installed?

No. The setup wizard will guide you to the server module installation docs if no server is detected.

更新日志:

0.1.0