locale_language_insert() and locale_language_update() should only have local cache side effects

Created on 28 September 2011, about 13 years ago
Updated 25 June 2023, over 1 year ago

locale_language_save() introduced in #1215716: Introduce locale_language_save() β†’ clears the following caches:

  // Kill the static cache in language_list().
  drupal_static_reset('language_list');

  // Changing the language settings impacts the interface.
  cache_clear_all('*', 'cache_page', TRUE);

  // Force JavaScript translation file re-creation for the modified language.
  _locale_invalidate_js($language->language);

The last two are not desired in the API function and since we have not been able to find a good abstract place for these two to live in locale module, @catch asked me to open a separate issue to continue figure this out. Here it is.

πŸ“Œ Task
Status

Closed: outdated

Version

9.5

Component
Language systemΒ  β†’

Last updated about 20 hours ago

  • Maintained by
  • πŸ‡©πŸ‡ͺGermany @sun
Created by

πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

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

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

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