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;

CommentFileSizeAuthor
memcached.patch668 bytesdbuzinov

Issue fork memcache-3208342

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dbuzinov created an issue. See original summary.

dbuzinov’s picture

Issue summary: View changes

dbuzinov’s picture

Status: Active » Closed (outdated)