Skip to content

Commit

Permalink
Make $cache_hits public to fix query monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Biont committed Jul 22, 2022
1 parent 404a6ab commit d0644bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ObjectCacheProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class ObjectCacheProxy

/**
* Amount of times the cache did not have the request in cache
* Public because external tools (query-monitor) directly access this
*
* @var int
* @access public
* @since WP 2.0.0
*/
public $cache_misses = 0;
Expand Down Expand Up @@ -57,12 +57,12 @@ class ObjectCacheProxy

/**
* The amount of times the cache data was already stored in the cache.
* Public because external tools (query-monitor) directly access this
*
* @since WP 2.5.0
* @access private
* @var int
*/
private $cache_hits = 0;
public $cache_hits = 0;

/**
* List of non persistent groups
Expand Down

0 comments on commit d0644bc

Please sign in to comment.