[BUGFIX] Cache table layout - Intermediate fix
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 6 Jul 2011 16:27:45 +0000 (18:27 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 6 Jul 2011 16:43:50 +0000 (18:43 +0200)
Intermediate patch to fix current broken backend login
if upgrading to latest 4.6

Change-Id: Id78b98ee413e425e8c9908ffbbb3bf72446a341f
Resolves: #27921
Reviewed-on: http://review.typo3.org/3057
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php

index 5e6658b..1ce23f4 100644 (file)
@@ -208,6 +208,10 @@ class t3lib_cache_backend_DbBackend extends t3lib_cache_backend_AbstractBackend
                                ' AND ' . $this->notExpiredStatement
                );
 
+               if (strlen($GLOBALS['TYPO3_DB']->sql_error()) > 0) {
+                       $this->flush();
+               }
+
                if (is_array($cacheEntry)) {
                        $cacheEntry = $cacheEntry['content'];
                }