WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#37726 closed defect (bug) (fixed)

Mark $cache_hits public on WP_Object_Cache

Reported by: danielbachhuber Owned by: wonderboymusic
Milestone: 4.7 Priority: normal
Severity: normal Version:
Component: Cache API Keywords: has-patch
Focuses: Cc:

Description

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

Attachments (1)

37726.1.diff (491 bytes) - added by danielbachhuber 3 years ago.

Download all attachments as: .zip

Change History (2)

#1 @wonderboymusic
3 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 38335:

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.

Note: See TracTickets for help on using tickets.