[wp-trac] [WordPress Trac] #46645: Site health: timeout on the "Info" tab

WordPress Trac noreply at wordpress.org
Wed Mar 27 07:22:54 UTC 2019


#46645: Site health: timeout on the "Info" tab
-------------------------------------------------+------------------------
 Reporter:  azaozz                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.2
Component:  Administration                       |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  site-health has-patch needs-testing  |     Focuses:  multisite
-------------------------------------------------+------------------------

Comment (by azaozz):

 In 46645.1.diff:
 - Continue from 46645.diff.
 - Fix and simplify creating the array of output strings.
 - Add another param `$max_execution_time` to `get_dirsize()` and
 `recurse_dirsize()`. Default to the current `ini_get( 'max_execution_time'
 );` to not change the functions behavior.
 - Add timeout protection to `get_dirsize()` and `recurse_dirsize()`.
 - Add `WP_START_TIMESTAMP` constant set to `microtime( true )` before WP
 loads.

 Still TODO:
 - We need to output some "sign" that the server is working while the user
 waits for the size calculation. Currently the timeout for that is 20
 seconds, and that's a looong time to wait :)
 - May need better naming/wording of error messages.

 Please test :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46645#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list