function OpCodeCache::isEnabled
Same name in other branches
- 9 core/lib/Drupal/Component/Utility/OpCodeCache.php \Drupal\Component\Utility\OpCodeCache::isEnabled()
- 10 core/lib/Drupal/Component/Utility/OpCodeCache.php \Drupal\Component\Utility\OpCodeCache::isEnabled()
- 11.x core/lib/Drupal/Component/Utility/OpCodeCache.php \Drupal\Component\Utility\OpCodeCache::isEnabled()
Checks if OpCodeCache is enabled.
Return value
bool TRUE if opcache is enabled, FALSE otherwise.
2 calls to OpCodeCache::isEnabled()
- install.php in core/
install.php - Initiates a browser-based installation of Drupal.
- system_requirements in core/
modules/ system/ system.install - Implements hook_requirements().
File
-
core/
lib/ Drupal/ Component/ Utility/ OpCodeCache.php, line 18
Class
- OpCodeCache
- Provides helpers to handle PHP opcode caches.
Namespace
Drupal\Component\UtilityCode
public static function isEnabled() {
return extension_loaded('Zend OPcache') && ini_get('opcache.enable');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.