You are here

public static function OpcodeCache::run in Automatic Updates 7

Run check.

Return value

array An array of translatable strings.

Overrides ReadinessCheckerInterface::run

File

ReadinessCheckers/OpcodeCache.php, line 11

Class

OpcodeCache
Error if opcode caching is enabled and updates are executed via CLI.

Code

public static function run() {
  $messages = [];
  if (self::isCli() && self::hasOpcodeFileCache()) {
    $messages[] = t('Automatic updates cannot run via CLI  when opcode file cache is enabled.');
  }
  return $messages;
}