Consolidate library extension caches into a single cache entry

Created on 21 March 2014, over 11 years ago
Updated 15 July 2025, 18 days ago

Problem/Motivation

Follow up to #2203411: Convert drupal_get_library() into a service , currently library info is cached per extension. So, for example, a vanilla D8 install, front page, there are ~ 10 calls to different library extension cache items.

Proposed resolution

Consolidate the per extension caches into one item, which is loaded by the Library service. We can still use getLibraryByExtension, hence no api changes, the class just gets its cached data once.

Remaining tasks

Wait for #2203411: Convert drupal_get_library() into a service , Decide best approach for getting all extension library info, implement above, tests.

User interface changes

None

API changes

None

📌 Task
Status

Fixed

Version

8.0 ⚰️

Component

base system

Created by

🇬🇧United Kingdom damiankloip

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024