[wp-trac] [WordPress Trac] #31066: wp_upload_dir calls wp_mkdir_p on each invocation
WordPress Trac
noreply at wordpress.org
Fri Aug 14 21:46:40 UTC 2015
#31066: wp_upload_dir calls wp_mkdir_p on each invocation
----------------------------+------------------------------
Reporter: rmccue | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Filesystem API | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+------------------------------
Comment (by prettyboymp):
I've been running into performance issues with an image heavy site on a
setup with the uploads dir mounted on networked storage. I traced it down
to the `wp_mkdir_p` and found this ticket. I've been running @kovshenin's
31066 patch for a few days now and haven't had any issues since.
One improvement that I think could be made to help even further improve
performance for plugins that use `wp_upload_dir()` would be to store a
static result from it's `wp_mkdir_p` call since PHP won't cache the
`file_exist` calls.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31066#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list