[wp-trac] [WordPress Trac] #34359: Cache output of `wp_upload_dir()` to improve performance

WordPress Trac noreply at wordpress.org
Wed Feb 3 23:31:23 UTC 2016

#34359: Cache output of `wp_upload_dir()` to improve performance
 Reporter:  mikeschroder                   |       Owner:  mikeschroder
     Type:  defect (bug)                   |      Status:  assigned
 Priority:  normal                         |   Milestone:  4.5
Component:  Media                          |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-testing has-patch early  |     Focuses:  multisite,
                                           |  performance

Comment (by azaozz):

 The persistent cache is only used to store absolute paths that have been
 tested (or created) with wp_mkdir_p(). On multisite these are still stored
 in each site's bucket.

 Keep in mind that in this context wp_mkdir_p() needs to run '''only once
 per month''' to create the next /year/month sub-dirs. The rest of the time
 (thousands or millions of runs) it is useless :)

Ticket URL: <https://core.trac.wordpress.org/ticket/34359#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list