[wp-trac] [WordPress Trac] #46645: Site health: timeout on the "Info" tab
WordPress Trac
noreply at wordpress.org
Mon Mar 25 21:18:16 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: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by azaozz):
The `$max_execution_time` also includes the time spent connecting to
wordpress.org which is added to the time spent in
`WP_Debug_data::get_directory_size()`, so we end up exceeding `ini_get(
'max_execution_time' )`.
Doing `$max_execution_time -= 5;` in `WP_Debug_data::get_directory_size()`
solves it here, but 5 seconds is an arbitrary value. Is there a better way
to reduce `$max_execution_time` by the time spent connecting to the wp.org
API?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46645#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list