#5908 - Add lang prefix cache

  • By
  • Added
  • 7 views
Identifier #5908
Issue type Feature request or suggestion
Title Add lang prefix cache
Status Open
Tags

Roadmap: Over the horizon (custom)

Type: Performance (custom)

Handling member Deleted
Addon core
Description Add cache files for language prefixes. For example, cache all the privilege strings in one file.

This will help reduce the need to require_all_lang and use up unnecessary memory in the process. We could do something like require_lang_prefix($prefix) instead, which will search for the cached file, or if it doesn't exist, require_all_lang and cache all the strings with that prefix.

Lang cache will need to be smart about this. When re-generating the cache for a specific ini file, it will need to update these special prefix files as well. But we don't want to just require_all_lang again. Instead, track each string to its file so we can dynamically update the prefix cache as specific lang files get re-cached.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated