From eb9c8ddaabd400ebf10b164ca41b392e51ae5db1 Mon Sep 17 00:00:00 2001
From: Wouter Wolters <typo3@wouterwolters.nl>
Date: Wed, 3 Jun 2015 13:24:41 +0200
Subject: [PATCH] [BUGFIX] Clear cache_treelist table in Install Tool

This is not implemented in the caching framework and
needs to be cleared manually.

Resolves: #67275
Releases: master,6.2
Change-Id: I05f4fb96eedff1002b843ef51b184bbd50493290
Reviewed-on: http://review.typo3.org/39916
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 typo3/sysext/install/Classes/Service/ClearCacheService.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/typo3/sysext/install/Classes/Service/ClearCacheService.php b/typo3/sysext/install/Classes/Service/ClearCacheService.php
index 455b46876da0..73a97aa3ba52 100644
--- a/typo3/sysext/install/Classes/Service/ClearCacheService.php
+++ b/typo3/sysext/install/Classes/Service/ClearCacheService.php
@@ -65,6 +65,10 @@ class ClearCacheService {
 			$tableName = $table['Name'];
 			if (substr($tableName, 0, 3) === 'cf_') {
 				$database->exec_TRUNCATEquery($tableName);
+			} elseif ($tableName === 'cache_treelist') {
+				// cache_treelist is not implemented in the caching framework.
+				// clear this table manually
+				$database->exec_TRUNCATEquery('cache_treelist');
 			}
 		}
 
-- 
GitLab