Add Memcache server reachability check in memcache_requirements hook

Created on 28 November 2024, 4 months ago

Problem/Motivation

When using monitoring modules such as [Monitoring]( https://www.drupal.org/project/monitoring ), hook_requirements are scanned to detect any issues with external services. The Memcache module provides a check during module installation and at runtime to verify that the Memcache extensions are available. However, there is currently no check to ensure that the Memcache server defined in `settings.php` is reachable.

Steps to Reproduce

  1. Enable the Memcache module and configure it to work with a Memcache service.
  2. 2Stop the Memcache service/server.
  3. Go to `[SITE]/admin/reports/status`.

No error is found.

Proposed Resolution

Add a check to memcache_requirements to verify that the server is reachable.

Remaining Tasks

A proposed patch will follow.

Feature request
Status

Needs review

Version

2.7

Component

Code

Created by

🇦🇺Australia GuillaumeG

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