[wp-trac] [WordPress Trac] #30202: In multisite, the "storage space used" is incorrectly calculated for the main blog/site.

WordPress Trac noreply at wordpress.org
Thu May 28 19:00:30 UTC 2015


#30202: In multisite, the "storage space used" is incorrectly calculated for the
main blog/site.
----------------------------------------+-----------------------------
 Reporter:  rebekahickey                |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Networks and Sites          |     Version:  4.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  multisite
----------------------------------------+-----------------------------

Comment (by earnjam):

 Just thought about a scenario here...since we cache the return from
 `get_dirsize()` as a transient, it's possible that if it was called
 directly outside of core with the new exclude parameter passed to it, it
 would cache that value instead of the expected core usage.

 Not sure the best way to prevent that.

 Perhaps don't cache the value if the exclude parameter is passed to it
 unless it is for the main site uploads directory?

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


More information about the wp-trac mailing list