Browse Source

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 years ago
parent
commit
f56d1274c6
1 changed files with 4 additions and 0 deletions
  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) {
 			if ($res === true) {
 				Minz_Request::forward(array(
 				Minz_Request::forward(array(
 					'c' => 'update',
 					'c' => 'update',