testClearArray() sets a value that Drupal core nor the DrupalApcCache class uses

Created on 26 July 2024, 5 months ago
Updated 9 August 2024, 5 months ago

APcCacheClearCase::testClearArray() contains the following code.

// Set the cache clear threshold to 2 to confirm that the full bin is
// cleared when the threshold is exceeded.
variable_set('cache_clear_threshold', 2);

Neither Drupal core nor the DrupalApcCache class uses that persistent value. That code should be removed.

I also created an equivalent issue for Drupal core 🐛 CacheClearCase::testClearArray() sets a persistent variable that has no effect Needs review .

🐛 Bug report
Status

Fixed

Version

1.0

Component

Tests

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