[BUGFIX] Clear cached menu by tag 95/24095/2
authorZbigniew Jacko <z.jacko@macopedia.pl>
Tue, 3 Sep 2013 22:10:48 +0000 (00:10 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 26 Sep 2013 22:24:56 +0000 (00:24 +0200)
This change adds a table cf_cache_hash for clear cache by tag
for example for cached menu.

Resolves: #51588
Releases: 6.2, 6.1, 6.0
Change-Id: I18b8aad3ac82737bbc52d4aae49be9028b6df944
Reviewed-on: https://review.typo3.org/23624
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
Reviewed-by: Piotr Molewski
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
(cherry picked from commit f6a8c13d3f71be582147be19d105046fce1d82ad)
Reviewed-on: https://review.typo3.org/24095

typo3/sysext/core/Classes/DataHandling/DataHandler.php

index b8dcc46..604109e 100644 (file)
@@ -6773,9 +6773,12 @@ class DataHandler {
                        $pageCache = $GLOBALS['typo3CacheManager']->getCache('cache_pages');
                        /** @var $pageSectionCache \TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend */
                        $pageSectionCache = $GLOBALS['typo3CacheManager']->getCache('cache_pagesection');
+                       /** @var $hashCache \TYPO3\CMS\Core\Cache\Frontend\AbstractFrontend */
+                       $hashCache = $GLOBALS['typo3CacheManager']->getCache('cache_hash');
                        foreach ($tagsToFlush as $tag) {
                                $pageCache->flushByTag($tag);
                                $pageSectionCache->flushByTag($tag);
+                               $hashCache->flushByTag($tag);
                        }
                }
                // Call post processing function for clear-cache: