WordPress.org

Make WordPress Core

Opened 11 days ago

Last modified 11 days 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.

Change History (1)

#1 @SergeyBiryukov
11 days ago

  • Component changed from General to Upgrade/Install
Note: See TracTickets for help on using tickets.