Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#50797 new enhancement

Maintenance file path should be configurable

Reported by: juanariza131's profile 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
4 years ago

  • Component changed from General to Upgrade/Install

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


4 years ago

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


4 years ago

#4 @pbiron
4 years ago

Related: #49440

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


4 years ago

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


4 years ago

Note: See TracTickets for help on using tickets.