[wp-trac] [WordPress Trac] #19879: Better caching for get_dirsize

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 23 15:42:59 UTC 2012


#19879: Better caching for get_dirsize
--------------------------+-----------------------------
 Reporter:  batmoo        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  3.3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 In a multisite install, when trying to determine whether a site has
 exceeded its storage quota, WordPress will scan through a blog's upload
 directory and sum up the file sizes, by running {{{filesize}}} against
 each one. With a large number of files, this can significantly slow down
 the upload process or certain portions of the Dashboard.

 {{{get_dirsize}}} has transient caching in place but this is a single
 cache entry for all folders. It might be better if WordPress has a
 separate cache entry for each folder and was invalidated based on context
 so that get_dirsize does not need to be run constantly on older, unchanged
 directories as frequently.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19879>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list