From 948dd11478ad42936dc8498289b28903cda18947 Mon Sep 17 00:00:00 2001 From: Philipp Gampe Date: Sat, 1 Dec 2012 20:03:48 +0100 Subject: [PATCH] [TASK] Provide a reason if set_no_cache() is called Since #20849, we can specify a reason why we call GLOBALS['TSFE']->set_no_cache(). Provide a reason for all calls done in core. Resolves: #43506 Related: #20849 Releases: 6.1 Change-Id: Id786a041ef5d9f1db49d644459a593aaf54b5018 Reviewed-on: http://review.typo3.org/16925 Reviewed-by: Stefan Neufeind Reviewed-by: Dmitry Dulepov Tested-by: Dmitry Dulepov --- Classes/FrontendEditPanel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 531b924..d6a7035 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -69,7 +69,7 @@ class FrontendEditPanel { */ public function editPanel($content, array $conf, $currentRecord = '', array $dataArr = array(), $table = '', $allow = '', $newUID = 0, array $hiddenFields = array()) { // Special content is about to be shown, so the cache must be disabled. - $GLOBALS['TSFE']->set_no_cache(); + $GLOBALS['TSFE']->set_no_cache('Frontend edit panel is shown'); $formName = 'TSFE_EDIT_FORM_' . substr($GLOBALS['TSFE']->uniqueHash(), 0, 4); $formTag = '
'; $sortField = $GLOBALS['TCA'][$table]['ctrl']['sortby']; @@ -185,7 +185,7 @@ class FrontendEditPanel { */ public function editIcons($content, $params, array $conf = array(), $currentRecord = '', array $dataArr = array(), $addUrlParamStr = '', $table, $editUid, $fieldList) { // Special content is about to be shown, so the cache must be disabled. - $GLOBALS['TSFE']->set_no_cache(); + $GLOBALS['TSFE']->set_no_cache('Display frontend edit icons'); $style = $conf['styleAttribute'] ? ' style="' . htmlspecialchars($conf['styleAttribute']) . '"' : ''; $iconTitle = $this->cObj->stdWrap($conf['iconTitle'], $conf['iconTitle.']); $iconImg = $conf['iconImg'] ? $conf['iconImg'] : '';