Project

General

Profile

Bug #20387 ยป 11024.diff

Administrator Admin, 2009-05-03 13:08

View differences:

t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php (working copy)
public function get($entryIdentifier) {
$cacheEntry = false;
$caheEntries = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
$cacheEntries = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
'content',
$this->cacheTable,
'identifier = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($entryIdentifier, $this->cacheTable) . ' '
. 'AND ((crdate + lifetime) >= ' . time() . ' OR lifetime = 0)'
);
if (count($caheEntries) == 1) {
$cacheEntry = $caheEntries[0]['content'];
if (count($cacheEntries) == 1) {
$cacheEntry = $cacheEntries[0]['content'];
}
return $cacheEntry;
......
public function has($entryIdentifier) {
$hasEntry = false;
$caheEntries = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
$cacheEntries = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
'content',
$this->cacheTable,
'identifier = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($entryIdentifier, $this->cacheTable) . ' '
. 'AND (crdate + lifetime) >= ' . time()
);
if (count($caheEntries) == 1) {
if (count($cacheEntries) == 1) {
$hasEntry = true;
}
......
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php']);
}
?>
?>
    (1-1/1)