Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#37726 closed defect (bug) (fixed)

Mark $cache_hits public on WP_Object_Cache

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

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 10 years ago.

Download all attachments as: .zip

Change History (2)

#1 @wonderboymusic
10 years ago

  • Owner set to wonderboymusic
  • Resolutionfixed
  • Status newclosed

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.