From 6983fa1b72d320e08cd2b1668de5d4e18a9f540d Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Sun, 27 Jun 2021 15:28:28 +0300 Subject: [PATCH] * invalidate opcache while saving config file --- src/includes/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/includes/common.php b/src/includes/common.php index 9bc2f38..24d30fa 100644 --- a/src/includes/common.php +++ b/src/includes/common.php @@ -165,14 +165,14 @@ class Config if($f === false) throw new Exception("Error while saving config file"); fwrite($f, ""); fclose($f); -/* + //Reset Zend OPcache //opcache_get_status() sometimes crashes //TODO: save config in database! if (function_exists("opcache_invalidate") && 0 != (int)opcache_get_configuration()["directives"]["opcache.enable"]) { opcache_invalidate(MTTPATH. 'db/config.php', true); } - */ + } }