WordPress/wp-includes
Dominik Schilling 3ea969bb66 Media: Don't cache the results of wp_mkdir_p() in a persistent cache.
To improve the performance of `wp_upload_dir()` the result of `wp_mkdir_p()` was stored in a persistent cache, introduced in [36565]. But this becomes an issue when WordPress is scaled horizontally. You may end up caching a value for a server where the directory doesn't exist which will prevent further uploads on other servers because of the persistent cache.
The fix is to use a non-persistent cache.

Merge of [37285] to the 4.5 branch.

Props azaozz, ocean90.
See #34359.
Fixes #36621.
Built from https://develop.svn.wordpress.org/branches/4.5@37286


git-svn-id: http://core.svn.wordpress.org/branches/4.5@37252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-04-21 20:18:28 +00:00
..
2016-03-10 05:37:27 +00:00
2016-03-10 05:37:27 +00:00
2015-12-06 21:50:25 +00:00
2016-03-10 05:37:27 +00:00
2016-03-10 05:37:27 +00:00
2016-04-19 21:27:28 +00:00