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

WordPress Trac noreply at wordpress.org
Tue Mar 26 01:15:14 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
-------------------------------------------------+------------------------
Changes (by pento):

 * keywords:  site-health => site-health has-patch needs-testing
 * focuses:   => multisite
 * component:  General => Administration


Comment:

 I did some performance testing, and found that the two major slowdowns
 were the WordPress.org check (~1s), and the filesystem size check (~10s).

 Multisite already has the `get_dirsize()` function, which is faster on the
 initial run than `WP_Debug_data::get_directory_size()` (6s), and due to
 caching, takes negligible time on subsequent runs.

 [attachment:"46645.diff"] switches to using `get_dirsize()`. Performance
 enhancements should probably land in `get_dirsize()` (related: #19879,
 #26135).

 @jeremyfelt: Any concerns about making `get_dirsize()` and
 `recurse_dirsize()` available on all sites?

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


More information about the wp-trac mailing list