TYPO3  7.6
Public Member Functions | List of all members
OpcodeCacheService Class Reference

Public Member Functions

 getAllActive ()
 
 clearAllActive ($fileAbsPath=null)
 

Detailed Description

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

Definition at line 23 of file OpcodeCacheService.php.

Member Function Documentation

clearAllActive (   $fileAbsPath = null)

Clears a file from an opcache, if one exists.

Parameters
string | NULL$fileAbsPathThe file as absolute path to be cleared or NULL to clear completely.
Returns
void

Definition at line 103 of file OpcodeCacheService.php.

References OpcodeCacheService\getAllActive().

getAllActive ( )

Returns all supported and active opcaches

Returns
array Array filled with supported and active opcaches

Definition at line 30 of file OpcodeCacheService.php.

Referenced by OpcodeCacheService\clearAllActive().