WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
01/01/2016 01:00:08 AM (6 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34359, comment 23

    initial v1  
    11In 34359.3.patch:
    22- Non-persistent cache like in 34359.2.patch.
    3 - Cacher the data before the `upload_dir` filter and run the filter every time on the cached data.
     3- Cache the data before the `upload_dir` filter and run the filter every time on the cached data.
     4- Use separate static var for caching the tested paths. This means we will usually run `wp_mkdir_p()` only once per load.
    45- Introduce `wp_get_upload_dir()` for "light weight" use, when a file is not being uploaded.
    56- Add cache refresh option to `wp_upload_dir()` and use it in the tests.