[BUGFIX] Disable caching for ADMCMD_view parameter 58/23558/2
authorPhilipp Kitzberger <philipp@cron-it.de>
Tue, 3 Sep 2013 14:11:31 +0000 (16:11 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 6 Sep 2013 17:55:04 +0000 (19:55 +0200)
This prevents that previewing a page leads to an entry for this page
in the TYPO3 cache table because contents on this page might be set
hidden.

Resolves: #51682
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I154d790454bf6bf0215b83e493919107a6c5bd93
Reviewed-on: https://review.typo3.org/23558
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/frontend/Classes/View/AdminPanelView.php

index abf29d5..20b69b3 100644 (file)
@@ -102,6 +102,8 @@ class AdminPanelView {
                        $GLOBALS['TSFE']->set_no_cache('Admin Panel: Display edit icons', TRUE);
                } elseif ($GLOBALS['TSFE']->displayFieldEditIcons) {
                        $GLOBALS['TSFE']->set_no_cache('Admin Panel: Display field edit icons', TRUE);
+               } elseif (GeneralUtility::_GP('ADMCMD_view')) {
+                       $GLOBALS['TSFE']->set_no_cache('Admin Panel: Display preview', TRUE);
                }
        }