Project

General

Profile

Bug #23247 » 15196_v1.diff

Administrator Admin, 2010-07-21 16:17

View differences:

t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php (Arbeitskopie)
public function has($entryIdentifier) {
$hasEntry = false;
$cacheEntries = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
$cacheEntries = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'content',
$this->cacheTable,
'identifier = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($entryIdentifier, $this->cacheTable) . ' '
. 'AND crdate + lifetime >= ' . $GLOBALS['EXEC_TIME']
);
if (count($cacheEntries) == 1) {
if ($GLOBALS['TYPO3_DB']->sql_num_rows($cacheEntries) == 1) {
$hasEntry = true;
}
(1-1/2)