User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This PR improves the robustness of Joomla’s language cache handling. Currently, if a language cache file is only partially written (e.g., due to low disk space, write interruption, or unexpected I/O failure), the corrupted cache file will remain on disk. On the next request, Joomla attempts to include this broken file, which may lead to PHP errors, warnings, or unexpected behavior.
This PR introduces safer handling of such scenarios by:
I could not find an easy way to make this operation fail on normal condition. So you can just perform simple test below:
Works, with potential errors if cache file is partially written
Works, no potential errors
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration Language & Strings Libraries |
| Labels |
Added:
Language Change
PR-6.0-dev
|
||
I have tested this item ✅ successfully on 7fa9554
I have successfully tested this.
(In case this is important (I doubt it): when going back into the backend and clicking around, the number of cache files that come back into the administrator/cache/language directory is not always the same initially...) most of the time it's 78 or 90, but sometimes its 58, and eventually climbs up to 120.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46545.