WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #34359, comment 26


Ignore:
Timestamp:
01/13/2016 01:28:40 AM (6 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34359, comment 26

    initial v1  
    33Was 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.
    44
    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 :)
     5We 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 :)