TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Service\CacheService Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Service\CacheService:
TYPO3\CMS\Core\SingletonInterface Tx_Extbase_Service_CacheService

Public Member Functions

 injectCacheManager (\TYPO3\CMS\Core\Cache\CacheManager $cacheManager)
 
 __construct ()
 
 getPageIdStack ()
 
 clearPageCache ($pageIdsToClear=NULL)
 
 clearCachesOfRegisteredPageIds ()
 

Protected Attributes

 $pageIdStack
 
 $cacheManager
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Cache clearing helper functions

Definition at line 20 of file CacheService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Service\CacheService::__construct ( )

Initializes the pageIdStack

Definition at line 42 of file CacheService.php.

Member Function Documentation

◆ clearCachesOfRegisteredPageIds()

TYPO3\CMS\Extbase\Service\CacheService::clearCachesOfRegisteredPageIds ( )

Walks through the pageIdStack, collects all pageIds as array and passes them on to clearPageCache.

Returns
void

Definition at line 78 of file CacheService.php.

References TYPO3\CMS\Extbase\Service\CacheService\clearPageCache().

◆ clearPageCache()

TYPO3\CMS\Extbase\Service\CacheService::clearPageCache (   $pageIdsToClear = NULL)

Clears the page cache

Parameters
mixed$pageIdsToClear(integer) single or (array) multiple pageIds to clear the cache for
Returns
void

Definition at line 59 of file CacheService.php.

Referenced by TYPO3\CMS\Extbase\Service\CacheService\clearCachesOfRegisteredPageIds().

◆ getPageIdStack()

TYPO3\CMS\Extbase\Service\CacheService::getPageIdStack ( )
Returns

Definition at line 49 of file CacheService.php.

References TYPO3\CMS\Extbase\Service\CacheService\$pageIdStack.

◆ injectCacheManager()

TYPO3\CMS\Extbase\Service\CacheService::injectCacheManager ( \TYPO3\CMS\Core\Cache\CacheManager  $cacheManager)
Parameters
\TYPO3\CMS\Core\Cache\CacheManager$cacheManager

Definition at line 35 of file CacheService.php.

References TYPO3\CMS\Extbase\Service\CacheService\$cacheManager.

Member Data Documentation

◆ $cacheManager

TYPO3\CMS\Extbase\Service\CacheService::$cacheManager
protected

◆ $pageIdStack

TYPO3\CMS\Extbase\Service\CacheService::$pageIdStack
protected