[wp-trac] [WordPress Trac] #34359: Cache output of `wp_upload_dir()` to improve performance
WordPress Trac
noreply at wordpress.org
Fri Feb 5 21:38:05 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):
Replying to [comment:37 mikeschroder]:
> Would contact/support forms be affected by that, for things like
attaching documents? (also perhaps anonymous image/video uploads, although
probably less frequently)
Right, it is safer to always check/create the uploads dir, even when the
user is not logged in.
In this case 34359.4.patch is ready to go. After that we can change all
calls to `wp_upload_dir()` that are not in uploading context to use
`wp_get_upload_dir()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34359#comment:40>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list