[BUGFIX] Better performance of DatabaseConnection->getDateTimeFormats 97/35197/3
authorStephan Großberndt <stephan@grossberndt.de>
Tue, 9 Dec 2014 14:42:19 +0000 (15:42 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 14 Dec 2014 16:37:21 +0000 (17:37 +0100)
commitc90a324afb7f4a43b601af24bfeaa1aca3e0a628
tree338d6e3935a0342ad0df58a3e52ee9f3a5c8c798
parentadc2893030d7a374c92a60f98270e73e72db6943
[BUGFIX] Better performance of DatabaseConnection->getDateTimeFormats

Currently each call to DatabaseConnection->getDateTimeFormats creates a
new array with default dateTimeFormats. Put this information into a
static class member and return this instead.

Resolves: #63669
Releases: master, 6.2
Change-Id: I457ad6b68fb6919782f349550e9efd07143d0de7
Reviewed-on: http://review.typo3.org/35197
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Database/DatabaseConnection.php