OpcodeCacheService

readonly class \TYPO3\CMS\Core\Service\OpcodeCacheService

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
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

Return values

array —

Array filled with supported and active opcaches

isClearable()

protected static isClearable() : bool

Return values

bool
On this page