Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Streamline usage of caching framework
Use code cache properly instead of storing strings into it, because it is proper usage of our API, removes the need for stripping PHP code strings and improves performance when OPCache is in use (which is recommended on production systems). Additionally all calls to ->has are removed, except one place where boolean values are stored in a runtime cache and in tests, because the API guarantees returning "false" when using ->get or ->require Doing so reduces the amount of lookups on the backend storage (file_exists for file backend, SQL queries for DB backend) and makes up more straightforward code in most places (reduces cyclomatic complexity by removing obsolete "else" branching). Releases: master Resolves: #89895 Change-Id: I401512ad4ddffb622ce2f4a9d88274deb4b4e849 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62558 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Achim Fritz <af@achimfritz.de> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Achim Fritz <af@achimfritz.de> Reviewed-by: Benni Mack <benni@typo3.org>
- Loading branch information
Showing
21 changed files
with
102 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.