[BUGFIX] Use getPagesTSconfig($tscPID) only once per ID 81/25181/6
authorJo Hasenau <info@cybercraft.de>
Tue, 5 Nov 2013 22:34:08 +0000 (23:34 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 8 Nov 2013 15:50:09 +0000 (16:50 +0100)
commitc9cd9c40ef9e24cf179c172489508987f050ea02
tree2b186255ad2c1cc1f7445096b8902f3447fbde38
parente376ff786eb3df43800f4191e795c6e5031d2e32
[BUGFIX] Use getPagesTSconfig($tscPID) only once per ID

PageLayoutView::isRTEforField is called on every record that is
displayed in a Web>Page. And this will call
BackendUtility::getPagesTSconfig($tscPID)
every time once and again,
and thus parsing the PageTS over and over on the same hit.
If you have 50 content elements on a page,
this can get very expensive.

Solution: Create a variable that stores the RTEsetup for
 a particular ID

Resolves: #53368
Releases: 6.2

Change-Id: I7efcefb0c12c856e9417ca8bb655acaabd4f15cc
Reviewed-on: https://review.typo3.org/25181
Reviewed-by: Oliver Klee
Reviewed-by: Jo Hasenau
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Sebastian Fischer
Reviewed-by: Wouter Wolters
Reviewed-by: Peter Foerger
Tested-by: Peter Foerger
Tested-by: Philipp Gampe
Reviewed-by: Philipp Gampe
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/backend/Classes/View/PageLayoutView.php