[BUGFIX] Clear cache_treelist table in Install Tool 35/39935/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 3 Jun 2015 11:24:41 +0000 (13:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 3 Jun 2015 20:33:34 +0000 (22:33 +0200)
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/39935
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Classes/Service/ClearCacheService.php

index 04781cb..ea0f5cf 100644 (file)
@@ -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');
                        }
                }