mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user