TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
CacheService Class Reference
Inheritance diagram for CacheService:
SingletonInterface

Public Member Functions

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

Protected Attributes

 $pageIdStack
 
 $cacheManager
 

Detailed Description

Cache clearing helper functions

Definition at line 20 of file CacheService.php.

Constructor & Destructor Documentation

__construct ( )

Initializes the pageIdStack

Definition at line 43 of file CacheService.php.

Member Function Documentation

clearCachesOfRegisteredPageIds ( )

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

Returns
void

Definition at line 83 of file CacheService.php.

References CacheService\clearPageCache().

clearPageCache (   $pageIdsToClear = null)

Clears the page cache

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

Definition at line 62 of file CacheService.php.

Referenced by CacheService\clearCachesOfRegisteredPageIds().

getPageIdStack ( )
Returns

Definition at line 51 of file CacheService.php.

References CacheService\$pageIdStack.

injectCacheManager ( \TYPO3\CMS\Core\Cache\CacheManager  $cacheManager)
Parameters
\TYPO3\CMS\Core\Cache\CacheManager$cacheManager

Definition at line 35 of file CacheService.php.

References CacheService\$cacheManager.

Member Data Documentation

$cacheManager
protected

Definition at line 30 of file CacheService.php.

Referenced by CacheService\injectCacheManager().

$pageIdStack
protected

Definition at line 25 of file CacheService.php.

Referenced by CacheService\getPageIdStack().