[TASK] Filter duplicate cache commands from cacheQueue 87/55587/2
authorSimon Schmidt <sfs@marketing-factory.de>
Wed, 7 Feb 2018 15:55:59 +0000 (16:55 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 2 Mar 2018 11:49:15 +0000 (12:49 +0100)
remove multiple calling for clear_cachecmd with the same page id

Resolves: #83797
Related: #82930
Releases: 7.6
Change-Id: I5740a33d3cf5dd5c7ccbe7166b9d0ba3e9ddeaee
Reviewed-on: https://review.typo3.org/55587
Reviewed-by: Daniel Klockenkaemper <dk@marketing-factory.de>
Tested-by: Daniel Klockenkaemper <dk@marketing-factory.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Guido Schmechel <littlegee@web.de>
Tested-by: Guido Schmechel <littlegee@web.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 39a046a..a2bbf7f 100644 (file)
@@ -7929,6 +7929,8 @@ class DataHandler
             $cacheManager->flushCachesInGroupByTag('pages', $tag);
         }
 
+        // Filter duplicate cache commands from cacheQueue
+        $clearCacheCommands = array_unique($clearCacheCommands);
         // Execute collected clear cache commands from page TSConfig
         foreach ($clearCacheCommands as $command) {
             $this->clear_cacheCmd($command);