[wp-trac] [WordPress Trac] #34359: Cache output of `wp_upload_dir()` to improve performance
WordPress Trac
noreply at wordpress.org
Mon Oct 19 21:59:43 UTC 2015
#34359: Cache output of `wp_upload_dir()` to improve performance
--------------------------+-------------------------------------
Reporter: DH-Shredder | Owner: DH-Shredder
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: multisite, performance
--------------------------+-------------------------------------
Comment (by boonebgorges):
+1. I've noticed the overhead in the past, too.
We should be careful to cache before filters. Lots of plugins (like
BuddyPress) filter `wp_upload_dir()` conditionally - based on current
context, current user, etc - and we need to make sure it's still possible
to filter in this way.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34359#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list