19 return \opcache_get_status ();
22 private static function getElement($part, $default): ?array {
32 return \is_array ( self::getStatistics () );
41 return self::getStatus () [self::PRELOAD_KEY_CACHE] ?? null;
50 return self::getElement ( self::PRELOAD_KEY_CACHE, 0 );
59 return self::getElement (
'functions', [ ] );
68 return self::getElement (
'scripts', [ ] );
77 return self::getElement (
'classes', [ ] );
Gives some informations about opcache preloading.
static getScripts()
Returns the list of preloaded scripts.
static getClasses()
Returns the list of preloaded classes.
static getFunctions()
Returns the list of preloaded functions.
static getElement($part, $default)
static getStatistics()
Returrns the opcache preload statistics.
static getMemoryConsumption()
Returns the preloader memory consumption.
static isActive()
Returns true if opcache preloader is activated.