class OpCache (View source)

Manages opcaches.

Methods

static 
clear(string|null $file = null)

Clear the opcache.

static bool
hasEAccelerator()

Is eAccelerator installed and enabled?

static bool
hasAPC()

Is Alternative PHP Cache (APC) installed and enabled?

static bool
hasXCache()

Is XCache installed and enabled?

static bool
hasWinCache()

Is WinCacne installed and enabled?

static bool
hasZendOpCache()

Is Zend OPCache installed and enabled?

Details

static clear(string|null $file = null)

Clear the opcache.

Parameters

string|null $file If it's specified, we'll try to clear the cache only for this file

static bool hasEAccelerator()

Is eAccelerator installed and enabled?

Return Value

bool

static bool hasAPC()

Is Alternative PHP Cache (APC) installed and enabled?

Return Value

bool

static bool hasXCache()

Is XCache installed and enabled?

Return Value

bool

static bool hasWinCache()

Is WinCacne installed and enabled?

Return Value

bool

static bool hasZendOpCache()

Is Zend OPCache installed and enabled?

Return Value

bool