[TASK] Suppress db call for rootline with uid 0 89/58289/7
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 16 Sep 2018 07:38:20 +0000 (09:38 +0200)
committerBenni Mack <benni@typo3.org>
Sun, 16 Sep 2018 17:51:03 +0000 (19:51 +0200)
commit0c85b76ced993fcdc7d0bcbce9b5cae06c2ebcf3
tree2c1fa5249f01b8be4513146391bcce46a135f360
parent67d43806a17a30f270ab7ff1c22fec827fc052ae
[TASK] Suppress db call for rootline with uid 0

Page uid 0 has no rootline by definition. The patch adds an
early return to RootlineUtility to suppress some cache->get()
calls. This happens in BE quite often. Additionally, the
SiteFinder does not query RootlineUtility for page uid 0 at
all to save a series of instance creations.

Resolves: #86271
Releases: master
Change-Id: I63c819c6dcd5e5c7a0e226ae16b0ecd6cf391e30
Reviewed-on: https://review.typo3.org/58289
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Site/SiteFinder.php
typo3/sysext/core/Classes/Utility/RootlineUtility.php