Bug #19366 » 0009408.patch
t3lib/cache/backend/class.t3lib_cache_backend_db.php (Arbeitskopie) | ||
---|---|---|
$cacheEntryRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
|
||
'identifier',
|
||
$this->cacheTable,
|
||
$GLOBALS['TYPO3_DB']->listQuery('tags', $tag, $this->cacheTable)
|
||
$this->getListQueryForTag($tag)
|
||
);
|
||
foreach ($cacheEntryRows as $cacheEntryRow) {
|
||
... | ... | |
$whereClause = array();
|
||
foreach ($tags as $tag) {
|
||
$whereClause[] = $GLOBALS['TYPO3_DB']->listQuery('tags', $tag, $this->cacheTable);
|
||
$whereClause[] = $this->getListQueryForTag($tag);
|
||
}
|
||
$cacheEntryRows = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
|
||
... | ... | |
protected function setCacheTable($cacheTable) {
|
||
$this->cacheTable = $cacheTable;
|
||
}
|
||
/**
|
||
* Gets the query to be used for selecting entries by a tag. The asterisk ("*")
|
||
* is allowed as a wildcard at the beginning and the end of a tag.
|
||
*
|
||
* @param string The tag to search for, the "*" wildcard is supported
|
||
* @return string the query to be used for selecting entries
|
||
* @author Oliver Hader <oliver@typo3.org>
|
||
*/
|
||
protected function getListQueryForTag($tag) {
|
||
return $GLOBALS['TYPO3_DB']->listQuery(
|
||
'tags',
|
||
str_replace('*', '%', $tag),
|
||
$this->cacheTable
|
||
);
|
||
}
|
||
}
|
||