Cache CacheContextsManager::convertTokensToKeys() (or specific cache contexts)

Created on 27 August 2015, about 9 years ago
Updated 28 June 2024, 4 months ago

Problem/Motivation

Ignore that, I was not correctly overriding the menu active trail service ( I have no idea why that isn't using the same pattern as the breadcrumb builder, though, which we could easily cache too).

convertTokensToKeys() is down to 4ms/3% now. 30% of that is in optimizeTokens(), simply because that is the place where we instantiate the context services. Everything is then below 1ms, which makes it hard to do much caching.

So we should try to cache it, the problem is invalidation.

Proposed resolution

We could try to cache them all but we don't know how they get invalidated.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Closed: duplicate

Version

11.0 🔥

Component
Cache 

Last updated 4 days ago

Created by

🇨🇭Switzerland berdir Switzerland

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

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

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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