Linux 软件免费装

Pavel Silinskii Maintenance Mode

开发者 pavelsilinskii
更新时间 2026年11月6日 00:36
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

maintenance maintenance mode wp-cli deployment 503

下载

1.0.0

详情介绍:

Pavel Silinskii Maintenance Mode is built for developers and agencies who deploy WordPress sites from scripts and CI/CD pipelines. Wrap your deploy in two commands: wp psmm on --for=15m # git pull, composer install, wp core update-db ... wp psmm off If the deploy script fails halfway, the site comes back by itself when the timeout ends — no more sites left in maintenance overnight. Why not core wp maintenance-mode? Core's mode locks out everyone, administrators included, shows a plain "Briefly unavailable" message, and has a fixed 10-minute window. This plugin: WP-CLI commands: Also works without the command line, from Settings → Maintenance Mode:

安装:

  1. Upload plugin files to /wp-content/plugins/pavel-silinskii-maintenance-mode/
  2. Activate through the Plugins screen.
  3. Go to Settings → Maintenance Mode to customize the page.
  4. Enable maintenance mode there, or run wp psmm on --for=15m from your deploy script.

常见问题:

What happens if my deploy script fails before wp psmm off?

With --for, maintenance mode turns off by itself when the timeout ends. Without it, the mode stays on until you turn it off.

Will maintenance mode hurt my SEO?

No. The page is served with HTTP status 503 and a Retry-After header, which tells search engines the outage is temporary and when to come back.

I enabled maintenance mode but I still see my site.

Administrators always see the live site. Use the "Preview maintenance page" button or open the site in a private window.

Visitors still see the live site.

A page cache (plugin, server or CDN) may be serving cached pages. Purge the cache after enabling maintenance mode.

How do I give a client access without an account?

Copy the secret bypass link from the Access section, or run wp psmm status. Clear the key and save to revoke all shared links.

Can I use my own template?

Yes. Copy templates/maintenance.php to your theme as psmm-maintenance.php, or use the psmm_template filter.

更新日志:

1.0.0