‪TYPO3CMS  10.4
TYPO3\CMS\Core\Service\OpcodeCacheService Class Reference

Public Member Functions

array getAllActive ()
 
 clearAllActive ($fileAbsPath=null)
 

Static Protected Member Functions

static bool isClearable ()
 

Detailed Description

Class with helper functions for clearing the PHP opcache. It auto detects the opcache system and invalidates/resets it. https://forge.typo3.org/issues/55252 Supported opcaches are: OPcache >= 7.0 (PHP 5.5)

Definition at line 24 of file OpcodeCacheService.php.

Member Function Documentation

◆ clearAllActive()

TYPO3\CMS\Core\Service\OpcodeCacheService::clearAllActive (   $fileAbsPath = null)

Clears a file from an opcache, if one exists.

Parameters
string | null$fileAbsPath‪The file as absolute path to be cleared or NULL to clear completely.

Definition at line 64 of file OpcodeCacheService.php.

References TYPO3\CMS\Core\Service\OpcodeCacheService\getAllActive().

◆ getAllActive()

array TYPO3\CMS\Core\Service\OpcodeCacheService::getAllActive ( )

Returns all supported and active opcaches

Returns
‪array Array filled with supported and active opcaches

Definition at line 31 of file OpcodeCacheService.php.

References TYPO3\CMS\Core\Service\OpcodeCacheService\isClearable().

Referenced by TYPO3\CMS\Core\Service\OpcodeCacheService\clearAllActive().

◆ isClearable()

static bool TYPO3\CMS\Core\Service\OpcodeCacheService::isClearable ( )
staticprotected
Returns
‪bool

Definition at line 75 of file OpcodeCacheService.php.

Referenced by TYPO3\CMS\Core\Service\OpcodeCacheService\getAllActive().