washingtonstateuniversity / WSUWP-Platform

Central publishing platform built on WordPress at Washington State University
Other
34 stars 1 forks source link

[PR] Test WordPress core #34395, cache output of wp_upload_dir() #319

Closed jeremyfelt closed 8 years ago

jeremyfelt commented 8 years ago

On page loads with many images, the use of responsive images may result in many, many calls to wp_upload_dir(). This is an attempt to properly cache that result for reuse and is a possible patch for WordPress core in 4.5.

As we have a more complex WP setup than usual, we're testing it in advance to ensure there are no strange problems.

See: https://core.trac.wordpress.org/ticket/34359 Patch: https://core.trac.wordpress.org/attachment/ticket/34359/34359.4.patch