2 namespace TYPO3\CMS\Extbase\Service;
45 $this->pageIdStack = new \SplStack;
64 if ($pageIdsToClear === null) {
65 $this->cacheManager->flushCachesInGroup(
'pages');
67 if (!is_array($pageIdsToClear)) {
68 $pageIdsToClear = array((
int)$pageIdsToClear);
70 foreach ($pageIdsToClear as $pageId) {
71 $this->cacheManager->flushCachesInGroupByTag(
'pages',
'pageId_' . $pageId);
84 if (!$this->pageIdStack->isEmpty()) {
86 while (!$this->pageIdStack->isEmpty()) {
87 $pageIds[] = (int)$this->pageIdStack->pop();
89 $pageIds = array_values(array_unique($pageIds));