WordPress.org

Make WordPress Core

Opened 2 months 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 (6)

#1 @SergeyBiryukov
2 months ago

  • Component changed from General to Upgrade/Install

This ticket was mentioned in Slack in #core-auto-updates by pbiron. View the logs.


12 days ago

This ticket was mentioned in Slack in #hosting-community by pbiron. View the logs.


12 days ago

#4 @pbiron
12 days ago

Related: #49440

This ticket was mentioned in Slack in #hosting-community by crixu. View the logs.


12 days ago

This ticket was mentioned in Slack in #hosting-community by jadonn. View the logs.


11 days ago

Note: See TracTickets for help on using tickets.