[TASK] Only use one select to calculate page cache timeout 13/43613/7
authorAlexander Opitz <alexander.opitz@netresearch.de>
Fri, 1 Mar 2013 09:26:50 +0000 (10:26 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 9 Oct 2015 20:35:59 +0000 (22:35 +0200)
commitc5620dff43fc94ebe8fb1b75ec03882a6a2d8a30
treead8e11e84eb6e29fd0bb7ca0e928e10b3e3afe85
parent96fcb3974275e36b0cc170f7d5cf15b9a7f561cb
[TASK] Only use one select to calculate page cache timeout

To get the first time value we do 2 SQL select statements at the
moment but this can be combined in one SQL select statement. This
will save as time and reduces bandwidth to/from the SQL server.

The one SQL select statement from 4.6 had a bug and was changed
to use 2 SQL select statements instead of fixing the statement itself.
So this is a revert to the old source with the fixed statement.

Resolves: #38838
Releases: master
Change-Id: Ida3542ef31e696a9457042c5980e9aa0c6cdfede
Reviewed-on: http://review.typo3.org/43613
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/dbal/Tests/Unit/Database/SqlParserTest.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Tests/Functional/Controller/TypoScriptFrontendControllerTest.php [new file with mode: 0644]
typo3/sysext/frontend/Tests/Functional/Controller/fixtures.xml [new file with mode: 0644]