pivvenit/wordpress-readonly
最新稳定版本:2.0.13
Composer 安装命令:
composer require pivvenit/wordpress-readonly
包简介
WordPress plugin that activates readonly mode
README 文档
README
A WordPress plugin that makes WordPress readonly. It's main use case is blue/green deployments, in which the active application slot requires a (short) readonly window to sync the database to the other slot.
Features:
WP-CLIcommands to enable and disable the readonly mode- Notify logged-in users (in the admin) of upcoming
readonlyphase using notification. - Disable login for all users during both
prepareandreadonlyphase. - Drop all
POSTrequests duringreadonlyphase with a503 Service Unavailable. - Refreshes admin pages for logged-in users once readonly mode is disabled.
Installation
This plugin is designed for WordPress websites that use Composer, such as Bedrock.
composer require pivvenit/wordpress-readonly
Usage
Enable readonly mode
./vendor/bin/wp readonly enable
Disable readonly mode
./vendor/bin/wp readonly disable
统计信息
- 总下载量: 13.56k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-30