Allow Memcache Statistics on JSON Feeds

Created on 19 June 2025, 17 days ago

Problem/Motivation

It may prove helpful to some to have the Memcache Statistics available on JSON responses, including custom endpoints.

Steps to reproduce

Open a JSON feed with admin setting "show_memcache_statistics" set to TRUE. There is currently no memcache statistics available, as this output is only intended for HTML pages.

Proposed resolution

Add setting to show on JSON output, then add conditions in the MemcacheAdminSubscriber that will check for JSON then add to the end of the response object.

Remaining tasks

_ Issue Fork
_ Review and Test
_ Merge to dev branch

User interface changes

New checkbox on /admin/config/system/memcache for show_memcache_statistics_json

API changes

none

Data model changes

memcache_admin.settings.show_memcache_statistics_json

✨ Feature request
Status

Active

Version

2.0

Component

memcache_admin

Created by

πŸ‡ΊπŸ‡ΈUnited States scott_earnest

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024