isMultilingual() loads all languages just to check if there is more than one

Created on 12 March 2016, about 9 years ago
Updated 25 January 2025, 2 months ago

Problem/Motivation

For fun, I'm currently trying to get rid of as many queries as I can on a simple site. And i noticed that isMultiple() loads all languages just to count them.

Proposed resolution

LanguageServiceProvider could store a parameter or something in the container that we can then access in ConfigurableLanguageProvider

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

language system

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.

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