PHP Class CacheTool\Proxy\OpcacheProxy

Inheritance: implements CacheTool\Proxy\ProxyInterface
Datei anzeigen Open project: gordalina/cachetool

Protected Properties

Property Type Description
$adapter CacheTool\Adapter\AbstractAdapter

Public Methods

Method Description
getFunctions ( )
opcache_compile_file ( string $file ) : boolean Compiles and caches a PHP script without executing it
opcache_get_configuration ( ) : array Get configuration information about the cache
opcache_get_status ( boolean $get_scripts = true ) : array Get status information about the cache
opcache_invalidate ( string $script, boolean $force = false ) : boolean Get status information about the cache
opcache_reset ( ) : boolean Resets the contents of the opcode cache
opcache_version ( ) : string
setAdapter ( AbstractAdapter $adapter )

Method Details

getFunctions() public method

public getFunctions ( )

opcache_compile_file() public method

This function compiles a PHP script and adds it to the opcode cache without executing it. This can be used to prime the cache after a Web server restart by pre-caching files that will be included in later requests.
Since: 5.5.5
Since: 7.0.2
public opcache_compile_file ( string $file ) : boolean
$file string The path to the PHP script to be compiled.
return boolean Returns TRUE if file was compiled successfully or FALSE on failure.

opcache_get_configuration() public method

Get configuration information about the cache
Since: 5.5.5
Since: 7.0.2
public opcache_get_configuration ( ) : array
return array Returns an array of information, including ini, blacklist and version

opcache_get_status() public method

Get status information about the cache
Since: 5.5.5
Since: 7.0.2
public opcache_get_status ( boolean $get_scripts = true ) : array
$get_scripts boolean Include script specific state information
return array Returns an array of information, optionally containing script specific state information

opcache_invalidate() public method

Get status information about the cache
Since: 5.5.0
Since: 7.0.0
public opcache_invalidate ( string $script, boolean $force = false ) : boolean
$script string The path to the script being invalidated.
$force boolean If set to TRUE, the script will be invalidated regardless of whether invalidation is necessary.
return boolean Returns TRUE if the opcode cache for script was invalidated or if there was nothing to invalidate, or FALSE if the opcode cache is disabled.

opcache_reset() public method

Resets the contents of the opcode cache
Since: 5.5.0
Since: 7.0.0
public opcache_reset ( ) : boolean
return boolean Returns TRUE if the opcode cache was reset, or FALSE if the opcode cache is disabled.

opcache_version() public method

public opcache_version ( ) : string
return string

setAdapter() public method

public setAdapter ( AbstractAdapter $adapter )
$adapter CacheTool\Adapter\AbstractAdapter

Property Details

$adapter protected_oe property

protected AbstractAdapter,CacheTool\Adapter $adapter
return CacheTool\Adapter\AbstractAdapter