[BUGFIX] Empty clear cache command logged 02/19902/2
authorOliver Hader <oliver@typo3.org>
Sat, 13 Apr 2013 11:07:21 +0000 (13:07 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Apr 2013 11:22:58 +0000 (13:22 +0200)
If e.g. enabling/disabling a record in the backend, an
additional empty clear cache command is logged, like
"User admin has cleared the cache (cacheCmd=)".

Change-Id: Ie7b6ee47c9e53c7ba399aada1f738fe700574e89
Fixes: #47181
Releases: 6.0, 6.1
Reviewed-on: https://review.typo3.org/19902
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/backend/Classes/Controller/SimpleDataHandlerController.php

index 5a3ad6f..f22fcb5 100644 (file)
@@ -212,7 +212,9 @@ class SimpleDataHandlerController {
                        $this->tce->process_datamap();
                        $this->tce->process_cmdmap();
                        // Clearing cache:
-                       $this->tce->clear_cacheCmd($this->cacheCmd);
+                       if (!empty($this->cacheCmd)) {
+                               $this->tce->clear_cacheCmd($this->cacheCmd);
+                       }
                        // Update page tree?
                        if ($this->uPT && (isset($this->data['pages']) || isset($this->cmd['pages']))) {
                                \TYPO3\CMS\Backend\Utility\BackendUtility::setUpdateSignal('updatePageTree');