false, 'opcache_invalidate' => []]; if (function_exists('opcache_reset')) { $r['opcache_reset'] = opcache_reset(); } $files = [ '/opt/wevia-brain/wevia-master-router.php', '/var/www/html/api/wevia-master-api.php', ]; foreach ($files as $f) { if (function_exists('opcache_invalidate')) { $r['opcache_invalidate'][$f] = opcache_invalidate($f, true); } } echo json_encode($r, JSON_PRETTY_PRINT);