Opened 4 years ago
Last modified 4 years ago
#50797 new enhancement
Maintenance file path should be configurable
Reported by: | juanariza131 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upgrade/Install | Keywords: | |
Focuses: | administration | Cc: |
Description
The maintenance file path is hardcoded to:
ABSPATH . '.maintenance'
In other words, it is assumed to be in the WordPress root directory.
When working on high availability environments with N WordPress replicas, it's common to use NFS to sync data across every replica. For instance, you can mount a NFS volume at wp-content.
To ensure the maintenance mode is simultaneously activated/deactivated on every replica, we also need to ensure the maintenance file is synced between replicas. That's why we need its path to be configurable, so we can change its location to a different directory where a NFS volume is mounted.
Related: #49440