DrupalAPCCache::set() expects a parameter Drupal will never pass

Created on 19 July 2024, about 2 months ago
Updated 2 August 2024, about 2 months ago

DrupalAPCCache::set() needs to have the same parameters used by DrupalCacheInterface::set(), but it has a parameter more, $headers, which will never be passed to DrupalAPCCache::set(). It was a parameter cache_set() had in Drupal 6, but it has been removed from Drupal 7.
DrupalAPCCache::set() also set $cache->headers with that parameter's value, but $cache->headers will not be used from Drupal core, nor from this module.

The $headers parameter must be removed from DrupalAPCCache::set(), which needs to stop setting $cache->headers.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇹Italy apaderno Brescia, 🇮🇹

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