300) { @unlink($lock); } // 3. Discard compiled bytecode of the files just replaced, for hosts where // OPcache would otherwise keep serving the old code until it restarts. if (function_exists('opcache_reset') && ini_get('opcache.enable')) { @opcache_reset(); } // 4. A line per update, so "when did this installation change" is // answerable without the manage server. @file_put_contents( $root . '/data/update-history.log', sprintf( "%s %s -> %s (migrations: %s)\n", date(DATE_ATOM), $context['from_version'] !== '' ? $context['from_version'] : 'unknown', $context['to_version'], $context['migrations'] === [] ? 'none' : implode(', ', $context['migrations']), ), FILE_APPEND | LOCK_EX, ); }