Project

General

Profile

Bug #20581 ยป 11285.diff

Administrator Admin, 2009-06-05 23:05

View differences:

t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php (Arbeitskopie)
*
* @param string The tag the entries must have
* @return void
* @author Ingo Renner <ingo@typo3.org>
*/
public function flushByTag($tag) {
foreach ($this->findIdentifiersByTag($tag) as $entryIdentifier) {
$this->remove($entryIdentifier);
}
$GLOBALS['TYPO3_DB']->exec_DELETEquery(
$this->cacheTable,
$this->getListQueryForTag($tag)
);
}
/**
......
*
* @param array The tags the entries must have
* @return void
* @author Ingo Renner <ingo@typo3.org>
*/
public function flushByTags(array $tags) {
foreach ($this->findIdentifiersByTags($tags) as $entryIdentifier) {
$this->remove($entryIdentifier);
$tmpListQuery = array();
foreach ($tags as $tag) {
$tmpListQuery[$tag] = $this->getListQueryForTag($tag);
}
$listQuery = implode(' OR ',$tmpListQuery);
$GLOBALS['TYPO3_DB']->exec_DELETEquery(
$this->cacheTable,
$listQuery
);
}
/**
    (1-1/1)