/** * Returning the cached version of page with hash = newHash * * @return array Cached row, if any. Otherwise void. * @todo Define visibility */ public function getFromCache_queryRow() { $GLOBALS['TT']->push('Cache Query', ''); $row = $this->pageCache->get($this->newHash); $GLOBALS['TT']->pull(); return $row; }
/** * Returning the cached version of page with hash = newHash * * @return array Cached row, if any. Otherwise void. */ function getFromCache_queryRow() { if (TYPO3_UseCachingFramework) { $GLOBALS['TT']->push('Cache Query', ''); $row = $this->pageCache->get($this->newHash); $GLOBALS['TT']->pull(); } else { $GLOBALS['TT']->push('Cache Query', ''); $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('S.*', 'cache_pages S,pages P', 'S.hash=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->newHash, 'cache_pages') . ' AND S.page_id=P.uid AND S.expires > ' . intval($GLOBALS['ACCESS_TIME']) . ' AND P.deleted=0 AND P.hidden=0 AND P.starttime<=' . intval($GLOBALS['ACCESS_TIME']) . ' AND (P.endtime=0 OR P.endtime>' . intval($GLOBALS['ACCESS_TIME']) . ')'); $GLOBALS['TT']->pull(); if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { $this->pageCachePostProcess($row, 'get'); } $GLOBALS['TYPO3_DB']->sql_free_result($res); } return $row; }