[wp-trac] [WordPress Trac] #50797: Maintenance file path should be configurable

WordPress Trac noreply at wordpress.org
Tue Jul 28 11:42:29 UTC 2020


#50797: Maintenance file path should be configurable
----------------------------+-----------------------------
 Reporter:  juanariza131    |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 The maintenance file path is hardcoded to:

 {{{#!php
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50797>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list