Automattic / wp-memcached

Memcached Object Cache for WordPress.
https://wordpress.org/plugins/memcached/
GNU General Public License v2.0
159 stars 55 forks source link

Missing $found param for wp_cache_get #23

Closed fl4p closed 5 years ago

fl4p commented 7 years ago

The correct implementation has a $found reference param, because your cache should allow any possible return value. Otherwise you'll never be able to cache false values.

function wp_cache_get( $key, $group = '', $force = false, &$found = null )