Memcache Statistics Misses and Hits issue

Created on 12 April 2021, over 3 years ago
Updated 8 March 2024, 10 months ago

Problem/Motivation

Memcache Statistics page shows wrong data for Misses and Hits.

Steps to reproduce

Visit admin/reports/memcache Misses and Hits show 0 or 1

Proposed resolution

Update memcache/memcache_admin/src/Stats/MemcacheStatsObject.php
- $hits = isset($this->stats['get_hits']) ?? 0;
- $misses = isset($this->stats['get_misses']) ?? 0;

+ $hits = isset($this->stats['get_hits']) ? $this->stats['get_hits'] : 0;
+ $misses = isset($this->stats['get_misses']) ? $this->stats['get_misses'] : 0;

πŸ› Bug report
Status

Closed: outdated

Version

2.3

Component

memcache_admin

Created by

πŸ‡ΊπŸ‡¦Ukraine dbuzinov

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024