Project

General

Profile

Bug #22106 » 13508_01.diff

Administrator Admin, 2010-02-11 02:16

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_TRUNCATETABLEquery($this->cacheTable);
$GLOBALS['TYPO3_DB']->exec_TRUNCATETABLEquery($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_TRUNCATETABLEquery('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_TRUNCATETABLEquery('cache_treelist');
$GLOBALS['TYPO3_DB']->exec_TRUNCATETABLEquery('cache_pagesection');
}
$this->internal_clearPageCache();
$GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_hash','');
$GLOBALS['TYPO3_DB']->exec_TRUNCATETABLEquery('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_TRUNCATETABLEquery($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_TRUNCATETABLEquery('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_TRUNCATETABLEquery('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_TRUNCATETABLEquery('static_tsconfig_help');
}
}
typo3/sysext/extbase/Classes/Utility/Cache.php (working copy)
} elseif (!is_null($pageIds)) {
$GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_pages', 'page_id IN (' . implode(',', $pageIds) . ')');
} else {
$GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_pages', '');
$GLOBALS['TYPO3_DB']->exec_TRUNCATETABLEquery('cache_pages');
}
}
......
} elseif (!is_null($pageIds)) {
$GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_pagesection', 'page_id IN (' . implode(',',$pageIds) . ')');
} else {
$GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_pagesection', '');
$GLOBALS['TYPO3_DB']->exec_TRUNCATETABLEquery('cache_pagesection');
}
}
}
typo3/sysext/dbal/mod1/index.php (working copy)
$cmd = (string)t3lib_div::_GP('cmd');
switch ($cmd) {
case 'flush':
$res = $GLOBALS['TYPO3_DB']->exec_DELETEquery('tx_dbal_debuglog', '');
$res = $GLOBALS['TYPO3_DB']->exec_DELETEquery('tx_dbal_debuglog_where', '');
$res = $GLOBALS['TYPO3_DB']->exec_TRUNCATETABLEquery('tx_dbal_debuglog');
$res = $GLOBALS['TYPO3_DB']->exec_TRUNCATETABLEquery('tx_dbal_debuglog_where');
$outStr = 'Log FLUSHED!';
break;
case 'joins':
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_TRUNCATETABLEquery('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_TRUNCATETABLEquery($table);
$qList[] = $table;
}
}
(1-1/2)