State cache bin is inconsistently chosen

Created on 1 April 2024, 10 months ago
Updated 15 April 2024, 9 months ago

Problem/Motivation

The state service definition uses the bootstrap cache bin:

  state:
    class: Drupal\Core\State\State
    arguments: ['@keyvalue', '@cache.bootstrap', '@lock']

The BC fallback uses the discovery cache bin:

    if (!$cache) {
      @trigger_error('Calling  ' . __METHOD__ . '() without the $cache argument is deprecated in drupal:10.3.0 and is required in drupal:11.0.0. See https://www.drupal.org/node/3177901', E_USER_DEPRECATED);
      $cache = \Drupal::cache('discovery');
    }

Steps to reproduce

Proposed resolution

Change the BC fallback to use the bootstrap cache bin.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

10.3 ✨

Component
CacheΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom longwave UK

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