OpcodeCacheService
Read onlyYes
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)
Table of Contents
Methods
- clearAllActive() : void
- Clears a file from an opcache, if one exists.
- getAllActive() : array<string|int, mixed>
- Returns all supported and active opcaches
- isClearable() : bool
Methods
clearAllActive()
Clears a file from an opcache, if one exists.
public
clearAllActive([string|null $fileAbsPath = null ]) : void
Parameters
- $fileAbsPath : string|null = null
-
The file as absolute path to be cleared or NULL to clear completely.
getAllActive()
Returns all supported and active opcaches
public
getAllActive() : array<string|int, mixed>
Return values
array<string|int, mixed> —Array filled with supported and active opcaches
isClearable()
protected
static isClearable() : bool