Project

General

Profile

Bug #23247 » 15196_v4.diff

Administrator Admin, 2010-07-27 01:01

View differences:

t3lib/cache/backend/class.t3lib_cache_backend_dbbackend.php (working copy)
/**
* Checks if a cache entry with the specified identifier exists.
*
* @param unknown_type
* @param string Specifies the identifier to check for existence
* @return boolean TRUE if such an entry exists, FALSE if not
* @author Ingo Renner <ingo@typo3.org>
*/
public function has($entryIdentifier) {
$hasEntry = false;
$hasEntry = FALSE;
$cacheEntries = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
'content',
$cacheEntries = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows(
'*',
$this->cacheTable,
'identifier = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($entryIdentifier, $this->cacheTable) . ' '
. 'AND crdate + lifetime >= ' . $GLOBALS['EXEC_TIME']
'identifier = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($entryIdentifier, $this->cacheTable) .
' AND crdate + lifetime >= ' . $GLOBALS['EXEC_TIME']
);
if (count($cacheEntries) == 1) {
$hasEntry = true;
if ($cacheEntries >= 1) {
$hasEntry = TRUE;
}
return $hasEntry;
(2-2/2)