[wp-trac] [WordPress Trac] #46954: Site Health: Hide "Directories and Sizes" for Multisite installations

WordPress Trac noreply at wordpress.org
Wed Apr 17 19:22:42 UTC 2019


#46954: Site Health: Hide "Directories and Sizes" for Multisite installations
-------------------------------------+-------------------------------------
 Reporter:  xkon                     |       Owner:  desrosj
     Type:  defect (bug)             |      Status:  reviewing
 Priority:  normal                   |   Milestone:  5.2
Component:  Administration           |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  site-health has-patch    |     Focuses:  ui, administration,
  reporter-feedback                  |  multisite
-------------------------------------+-------------------------------------
Changes (by desrosj):

 * keywords:  site-health has-patch commit => site-health has-patch
     reporter-feedback


Comment:

 I don't think we have to rip out all of these fields for multisite. With a
 few adjustments, I think we can leave most of this group (which is still
 useful for debugging multisite).

 In my testing, I found that only the primary site will calculate the size
 of the entire uploads directory. Sub sites will calculate the size of only
 their own upload directory (`wp-content/uploads/sites/3`).

 With that in mind, what if we made the following changes for the current
 state:

 - Remove "Total installation size", "Database size", and "WordPress
 Directory Size" for all sites on multisite installs. These possess a high
 likelihood of being too large and the potential for causing "crashing".
 - Hide the "Uploads Directory Size" on the primary site of a network to
 avoid calculating the upload directory sizes for every site, and the
 potential for "crashing".
 - Do not calculate the Theme and Plugin directory sizes for all sites on a
 multisite install. These could be unwieldy for large multisite installs.
 - Leave all other fields as is.

 In the future, I think the following could be added/adjusted for
 multisite:
 - Current site's allowed quota.
 - Percentage or amount of quota used.
 - Site's maximum allowed file size.
 - A way for network administrators to request the sizes of removed
 elements above.
 - A way for a network administrator to view "Network Health".

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


More information about the wp-trac mailing list