Skip to content

Commit

Permalink
Merge pull request #103 from humanmade/add-hit-miss-stats
Browse files Browse the repository at this point in the history
Add more stats from Afterburner
  • Loading branch information
joehoyle authored Oct 1, 2024
2 parents 567c674 + d74552f commit f852cb8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,12 @@ function get_object_cache_stats() : array {
'remote_calls' => $stats->redis_total_calls,
// Expected to be in seconds, redis_total_time is in microseconds.
'time' => $stats->redis_total_time / 1000000,
'hits' => 0,
'misses' => 0,
'hits' => $stats->request_cache_hits,
'misses' => $stats->request_cache_misses,
'lru_cache_misses' => $stats->lru_cache_misses,
'lru_cache_hits' => $stats->lru_cache_hits,
'lru_cache_items' => $stats->lru_cache_items,
'lru_cache_size' => $stats->lru_cache_size,
];
return $stats;
}
Expand Down

0 comments on commit f852cb8

Please sign in to comment.