Implement static caching around SchedulerManager::getPlugins()

Created on 2 July 2025, 4 days ago

Problem/Motivation

I've been doing some Blackfire profiling lately and noticed SchedulerManager::getPlugins() being called 8 times in an add to cart request (via a JSONAPI endpoint).

This means 8 requests to Redis (which might not sound a lot), but it is unnecessary as we could simply retrieve the plugins once per request, and statically cache them in an array.

See the attached screenshot, won't be able to work on this today, but maybe in the upcoming days if the maintainers are interested.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇮🇱Israel jsacksick

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