Bug #23422 » 15525_trunk_v2.diff
t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php | ||
---|---|---|
*/
|
||
public function collectGarbage() {
|
||
// Get identifiers of expired cache entries
|
||
$tagsEntryIdentifierRowsRessource = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
|
||
$tagsEntryIdentifierRowsResource = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
|
||
'identifier',
|
||
$this->cacheTable,
|
||
'crdate + lifetime < ' . $GLOBALS['EXEC_TIME'] . ' AND lifetime > 0'
|
||
);
|
||
$tagsEntryIdentifiers = array();
|
||
while ($tagsEntryIdentifierRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($tagsEntryIdentifierRowsRessource)) {
|
||
while ($tagsEntryIdentifierRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($tagsEntryIdentifierRowsResource)) {
|
||
$tagsEntryIdentifiers[] = $GLOBALS['TYPO3_DB']->fullQuoteStr(
|
||
$tagsEntryIdentifierRow['identifier'],
|
||
$this->tagsTable
|
||
);
|
||
}
|
||
$GLOBALS['TYPO3_DB']->sql_free_result($cacheEntryIdentifierRowsRessource);
|
||
$GLOBALS['TYPO3_DB']->sql_free_result($tagsEntryIdentifierRowsResource);
|
||
// Delete tag rows connected to expired cache entries
|
||
if (count($tagsEntryIdentifiers)) {
|
- « Previous
- 1
- 2
- Next »