class OpCodeCache (View source)

Provides helpers to handle PHP opcode caches.

Methods

static bool
isEnabled()

Checks if OpCodeCache is enabled.

static 
invalidate(string $pathname)

Invalidates a PHP file from a possibly active opcode cache.

Details

static bool isEnabled()

Checks if OpCodeCache is enabled.

Return Value

bool

TRUE if opcache is enabled, FALSE otherwise.

static invalidate(string $pathname)

Invalidates a PHP file from a possibly active opcode cache.

In case the opcode cache does not support to invalidate an individual file, the entire cache will be flushed.

Parameters

string $pathname

The absolute pathname of the PHP file to invalidate.