Project

General

Profile

Bug #22106 » 13508_v3.diff

Administrator Admin, 2010-04-12 20:52

View differences:

t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php (working copy)
* @author Ingo Renner <ingo@typo3.org>
*/
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);
}
/**
t3lib/class.t3lib_tcemain.php (working copy)
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"');
}
......
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');
}
}
}
typo3/mod/tools/em/class.em_xmlhandler.php (working copy)
$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);
typo3/sysext/tsconfig_help/mod1/index.php (working copy)
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');
}
}
typo3/sysext/install/mod/class.tx_install.php (working copy)
$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 (
......
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
(2-2/2)