[wp-trac] [WordPress Trac] #25660: If an administrator triggers cron, a background update could temporarily lock them out

WordPress Trac noreply at wordpress.org
Tue Oct 22 18:29:11 UTC 2013


#25660: If an administrator triggers cron, a background update could temporarily
lock them out
-------------------------------------+------------------
 Reporter:  nacin                    |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  high                     |   Milestone:  3.7
Component:  Upgrade/Install          |     Version:
 Severity:  major                    |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by azaozz):

 Another (theoretical) idea: "delay" POST requests coming from the admin
 while the site is in maintenance mode. The benefit is this would be
 completely transparent for the user (apart from some delay when submitting
 a form).

 This could work by detecting the .maintenance file on POST and setting
 something like sleep(3) in PHP, then checking again, etc. The browsers
 would wait for several minutes for a response and we can use
 set_time_limit() several times so PHP doesn't time out.

 As auto updates typically run less than a minute, the sleep(5) would be in
 a loop that runs 20 times before giving up. Can also do this only for
 critical POST requests, for example when a user is attempting to save a
 post.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25660#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list