Changes between Initial Version and Version 1 of Ticket #34359, comment 26
- Timestamp:
- 01/13/2016 01:28:40 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34359, comment 26
initial v1 3 3 Was thinking more about avoiding the `wp_mkdir_p()` call on (very) busy sites with persistent cache. That seems to be the slowest part of `wp_upload_dir()` and is needed only once a month when uploading a file. 4 4 5 We have to keep calling it so we are 100% backwards compatible. If a theme uses `wp_upload_dir()` on the front end on a busy site, it is called many thousands of times every day for no good reason :)5 We have to keep calling it so we are 100% backwards compatible. If a theme uses `wp_upload_dir()` on the front end on a busy site, or if there is a gallery in the post, it is called many thousands of times every day for no good reason :)