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;
| Comment | File | Size | Author |
|---|---|---|---|
| memcached.patch | 668 bytes | dbuzinov |
Issue fork memcache-3208342
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:
- 3208342-memcache-statistics-misses
compare
- 8.x-2.x
changes, plain diff MR !2
Comments
Comment #3
dbuzinov commentedComment #5
dbuzinov commented