Details
Description
In MDL-41809 the bug was fixed when $PAGE->context was not available during course cache building, calling format_string() resulted in debugging messages.
The bigger problem is that course cache may contain strings that were processed through filters or taken from language packs. It is not guaranteed that during the display of these strings the same filters or the same language is used.
Possible solution is to make class lang_string cacheable and implement similar cacheable class for formatted string/text and use new lang_string() instead of get_string() and this new class instead of format_string/format_text
Attachments
Issue Links
- has been marked as being related by
-
MDL-41809 Call to format_text during course cache building causes debugging message
-
- Closed
-