You are here

public static function Helper::resetOpCache in Drupal 7

1 call to Helper::resetOpCache()
PharStreamWrapper::stream_open in misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php

File

misc/typo3/phar-stream-wrapper/src/Helper.php, line 29

Class

Helper
Helper provides low-level tools on file name resolving. However it does not (and should not) maintain any runtime state information. In order to resolve Phar archive paths according resolvers have to be used.

Namespace

TYPO3\PharStreamWrapper

Code

public static function resetOpCache() {
  if (function_exists('opcache_reset') && function_exists('opcache_get_status')) {
    $status = opcache_get_status();
    if (!empty($status['opcache_enabled'])) {
      opcache_reset();
    }
  }
}