#1859 - Cache clearing cache condition can cause memory exhaustion

Identifier #1859
Issue type Minor issue (breaks specific functionality)
Title Cache clearing cache condition can cause memory exhaustion
Status Completed
Handling member Chris Graham
Version 9.0.19
Addon General / Uncategorised
Description A very rare condition was found by a user upgrading. This is not an issue specifically with 9.0.19 or the upgrader, but was triggered by clearing the cache and bad luck.

If you're very unlucky and parallel web requests lead to a situation when the critical_errors language file is cached but the global language file is not, a logic error leads to Composr encountering a chicken&egg problem during startup and gets into an infinite recursion until memory runs out.

This hotfix solves the problem in two different ways.
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