コード例 #1
0
 /**
  * Clears cache content for a list of page ids
  *
  * @param string $pidList A list of INTEGER numbers which points to page uids for which to clear entries in the cache_pages cache (page content cache)
  * @return void
  * @todo Define visibility
  */
 public function clearPageCacheContent_pidList($pidList)
 {
     $pageIds = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $pidList);
     foreach ($pageIds as $pageId) {
         $this->pageCache->flushByTag('pageId_' . (int) $pageId);
     }
 }
コード例 #2
0
 /**
  * Clears cache content for a list of page ids
  *
  * @param	string		A list of INTEGER numbers which points to page uids for which to clear entries in the cache_pages cache (page content cache)
  * @return	void
  */
 function clearPageCacheContent_pidList($pidList)
 {
     if (TYPO3_UseCachingFramework) {
         $pageIds = t3lib_div::trimExplode(',', $pidList);
         foreach ($pageIds as $pageId) {
             $this->pageCache->flushByTag('pageId_' . (int) $pageId);
         }
     } else {
         $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_pages', 'page_id IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($pidList) . ')');
     }
 }