Index: t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php =================================================================== --- t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php (revision 7290) +++ t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php (working copy) @@ -288,8 +288,8 @@ * @author Ingo Renner */ public function flush() { - $GLOBALS['TYPO3_DB']->sql_query('TRUNCATE ' . $this->cacheTable); - $GLOBALS['TYPO3_DB']->sql_query('TRUNCATE ' . $this->tagsTable); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery($this->cacheTable); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery($this->tagsTable); } /** Index: t3lib/class.t3lib_tcemain.php =================================================================== --- t3lib/class.t3lib_tcemain.php (revision 7291) +++ t3lib/class.t3lib_tcemain.php (working copy) @@ -7416,22 +7416,22 @@ if (TYPO3_UseCachingFramework) { if (t3lib_extMgm::isLoaded('cms')) { - $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_treelist', ''); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cache_treelist'); } } else { if (t3lib_extMgm::isLoaded('cms')) { - $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_treelist', ''); - $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_pagesection',''); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cache_treelist'); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cache_pagesection'); } $this->internal_clearPageCache(); - $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_hash',''); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cache_hash'); } // Clearing additional cache tables: if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables'])) { foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables'] as $tableName) { if (!preg_match('/[^[:alnum:]_]/',$tableName) && substr($tableName,-5)=='cache') { - $GLOBALS['TYPO3_DB']->exec_DELETEquery($tableName,''); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery($tableName); } else { die('Fatal Error: Trying to flush table "'.$tableName.'" with "Clear All Cache"'); } @@ -7626,7 +7626,7 @@ t3lib_div::sysLog('Could not remove page cache files in "'.$cacheDir.'"','Core/t3lib_tcemain',2); } } - $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_pages',''); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cache_pages'); } } } Index: typo3/mod/tools/em/class.em_xmlhandler.php =================================================================== --- typo3/mod/tools/em/class.em_xmlhandler.php (revision 7290) +++ typo3/mod/tools/em/class.em_xmlhandler.php (working copy) @@ -370,7 +370,7 @@ $this->revStateArr[$state] = $idx++; } - $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_extensions', '1=1'); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cache_extensions'); $extcount = 0; @ini_set('pcre.backtrack_limit', 500000); Index: typo3/sysext/tsconfig_help/mod1/index.php =================================================================== --- typo3/sysext/tsconfig_help/mod1/index.php (revision 7290) +++ typo3/sysext/tsconfig_help/mod1/index.php (working copy) @@ -727,7 +727,7 @@ if ($extension != '') { $GLOBALS['TYPO3_DB']->exec_DELETEquery('static_tsconfig_help', 'guide='.$guide); } else { - $GLOBALS['TYPO3_DB']->exec_DELETEquery('static_tsconfig_help', ''); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('static_tsconfig_help'); } } Index: typo3/sysext/install/mod/class.tx_install.php =================================================================== --- typo3/sysext/install/mod/class.tx_install.php (revision 7290) +++ typo3/sysext/install/mod/class.tx_install.php (working copy) @@ -1889,7 +1889,7 @@ $action = $this->INSTALL['cleanup_type']; if (($action == 'cache_imagesizes' || $action == 'all') && isset ($tables['cache_imagesizes'])) { - $GLOBALS['TYPO3_DB']->exec_DELETEquery ('cache_imagesizes',''); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('cache_imagesizes'); } $cleanupType = array ( @@ -6309,7 +6309,7 @@ if ($table!='--div--') { $table_c = TYPO3_OS=='WIN' ? strtolower($table) : $table; if ($this->INSTALL['database_clearcache'][$table] && $whichTables[$table_c]) { - $GLOBALS['TYPO3_DB']->exec_DELETEquery($table, ''); + $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery($table); // Define the markers content $emptiedTablesMarkers = array( 'tableName' => $table