TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Utility\OpcodeCacheUtility Class Reference

Static Public Member Functions

static getCanInvalidate ($system)
 
static clearAllActive ($fileAbsPath=NULL)
 
static getAllActive ()
 
static canApcInvalidate ()
 

Static Protected Member Functions

static initialize ()
 

Static Protected Attributes

static $supportedCaches = NULL
 
static $activeCaches = NULL
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Class with helper functions for clearing the PHP opcache. It auto detects the opcache system and invalidates/resets it. http://forge.typo3.org/issues/55252 Supported opcaches are: OPcache (PHP 5.5), APC, WinCache, XCache, eAccelerator, ZendOptimizerPlus

Author
Alexander Opitz opitz.nosp@m.@plu.nosp@m.spol-.nosp@m.inte.nosp@m.racti.nosp@m.ve.d.nosp@m.e

Definition at line 25 of file OpcodeCacheUtility.php.

Member Function Documentation

◆ canApcInvalidate()

static TYPO3\CMS\Core\Utility\OpcodeCacheUtility::canApcInvalidate ( )
static

Checks if the APC configuration is useable to clear cache of one file. https://bugs.php.net/bug.php?id=66819

Returns
bool Returns TRUE if file can be invalidated and FALSE if complete cache needs to be removed

Definition at line 225 of file OpcodeCacheUtility.php.

◆ clearAllActive()

static TYPO3\CMS\Core\Utility\OpcodeCacheUtility::clearAllActive (   $fileAbsPath = NULL)
static

◆ getAllActive()

static TYPO3\CMS\Core\Utility\OpcodeCacheUtility::getAllActive ( )
static

Returns all supported and active opcaches

Returns
array Array filled with supported and active opcaches

Definition at line 212 of file OpcodeCacheUtility.php.

Referenced by TYPO3\CMS\Install\SystemEnvironment\Check\checkSomePhpOpcodeCacheIsLoaded().

◆ getCanInvalidate()

static TYPO3\CMS\Core\Utility\OpcodeCacheUtility::getCanInvalidate (   $system)
static

Gets the state of canInvalidate for given cache system.

Parameters
string$systemThe cache system to test (APC, ...)
Returns
boolean The calculated value from array or FALSE if cache system not exists.

Definition at line 187 of file OpcodeCacheUtility.php.

Referenced by TYPO3\CMS\Core\Utility\OpcodeCacheUtility\initialize().

◆ initialize()

static TYPO3\CMS\Core\Utility\OpcodeCacheUtility::initialize ( )
staticprotected

Member Data Documentation

◆ $activeCaches

TYPO3\CMS\Core\Utility\OpcodeCacheUtility::$activeCaches = NULL
staticprotected

Definition at line 37 of file OpcodeCacheUtility.php.

◆ $supportedCaches

TYPO3\CMS\Core\Utility\OpcodeCacheUtility::$supportedCaches = NULL
staticprotected

Definition at line 31 of file OpcodeCacheUtility.php.