Cache: in WP_Object_Cache, $cache_misses is public, but $cache_hits is private. They should both be public, because they're useful for debugging purposes.

Props danielbachhuber.
Fixes #37726.


git-svn-id: https://develop.svn.wordpress.org/trunk@38335 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2016-08-23 14:37:31 +00:00
parent 3aee745492
commit da8597c76b

View File

@ -302,10 +302,10 @@ class WP_Object_Cache {
* The amount of times the cache data was already stored in the cache.
*
* @since 2.5.0
* @access private
* @access public
* @var int
*/
private $cache_hits = 0;
public $cache_hits = 0;
/**
* Amount of times the cache did not have the request in cache.