[BUGFIX] Disable caching for ADMCMD_view parameter 66/23666/3
authorPhilipp Kitzberger <philipp@cron-it.de>
Tue, 3 Sep 2013 14:11:31 +0000 (16:11 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 9 Sep 2013 16:47:12 +0000 (18:47 +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/23666
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/frontend/Classes/View/AdminPanelView.php

index 68140d6..3e9e576 100644 (file)
@@ -98,6 +98,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 (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('ADMCMD_view')) {
+                       $GLOBALS['TSFE']->set_no_cache('Admin Panel: Display preview', TRUE);
                }
        }