瀏覽代碼

Fix opcache bug during Web update (#4629)

#fix https://github.com/FreshRSS/FreshRSS/issues/4624
#fix https://github.com/FreshRSS/FreshRSS/issues/4605
Alexandre Alapetite 3 年之前
父節點
當前提交
f56d1274c6
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      app/Controllers/updateController.php

+ 4 - 0
app/Controllers/updateController.php

@@ -259,6 +259,10 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
 				}
 			}
 
+			if (function_exists('opcache_reset')) {
+				opcache_reset();
+			}
+
 			if ($res === true) {
 				Minz_Request::forward(array(
 					'c' => 'update',