Bug #23247 » 15196_v4.diff
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;
|
- « Previous
- 1
- 2
- Next »