/**
  * Sets cache content; Inserts the content string into the cache_pages cache.
  *
  * @param string $content The content to store in the HTML field of the cache table
  * @param mixed $data The additional cache_data array, fx. $this->config
  * @param integer $expirationTstamp Expiration timestamp
  * @return void
  * @see realPageCacheContent(), tempPageCacheContent()
  * @todo Define visibility
  */
 public function setPageCacheContent($content, $data, $expirationTstamp)
 {
     $cacheData = array('identifier' => $this->newHash, 'page_id' => $this->id, 'content' => $content, 'temp_content' => $this->tempContent, 'cache_data' => serialize($data), 'expires' => $expirationTstamp, 'tstamp' => $GLOBALS['EXEC_TIME']);
     $this->cacheExpires = $expirationTstamp;
     $this->pageCacheTags[] = 'pageId_' . $cacheData['page_id'];
     if ($this->page_cache_reg1) {
         $reg1 = intval($this->page_cache_reg1);
         $cacheData['reg1'] = $reg1;
         $this->pageCacheTags[] = 'reg1_' . $reg1;
     }
     if (!empty($this->page['cache_tags'])) {
         $tags = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->page['cache_tags'], TRUE);
         $this->pageCacheTags = array_merge($this->pageCacheTags, $tags);
     }
     $this->pageCache->set($this->newHash, $cacheData, $this->pageCacheTags, $expirationTstamp - $GLOBALS['EXEC_TIME']);
 }
 /**
  * Sets cache content; Inserts the content string into the cache_pages cache.
  *
  * @param	string		The content to store in the HTML field of the cache table
  * @param	mixed		The additional cache_data array, fx. $this->config
  * @param	integer		Expiration timestamp
  * @return	void
  * @see realPageCacheContent(), tempPageCacheContent()
  */
 function setPageCacheContent($content, $data, $expirationTstamp)
 {
     if (TYPO3_UseCachingFramework) {
         $cacheData = array('identifier' => $this->newHash, 'page_id' => $this->id, 'content' => $content, 'temp_content' => $this->tempContent, 'cache_data' => serialize($data), 'expires' => $expirationTstamp, 'tstamp' => $GLOBALS['EXEC_TIME']);
         $this->cacheExpires = $expirationTstamp;
         $this->pageCacheTags[] = 'pageId_' . $cacheData['page_id'];
         if ($this->page_cache_reg1) {
             $reg1 = intval($this->page_cache_reg1);
             $cacheData['reg1'] = $reg1;
             $this->pageCacheTags[] = 'reg1_' . $reg1;
         }
         $this->pageCache->set($this->newHash, $cacheData, $this->pageCacheTags, $expirationTstamp - $GLOBALS['EXEC_TIME']);
     } else {
         $this->clearPageCacheContent();
         $insertFields = array('hash' => $this->newHash, 'page_id' => $this->id, 'HTML' => $content, 'temp_content' => $this->tempContent, 'cache_data' => serialize($data), 'expires' => $expirationTstamp, 'tstamp' => $GLOBALS['EXEC_TIME']);
         $this->cacheExpires = $expirationTstamp;
         if ($this->page_cache_reg1) {
             $insertFields['reg1'] = intval($this->page_cache_reg1);
         }
         $this->pageCachePostProcess($insertFields, 'set');
         $GLOBALS['TYPO3_DB']->exec_INSERTquery('cache_pages', $insertFields);
     }
 }