Admin\Maintenance: Resets the contents of the opcode cache after clearing the engine cache

Is it necessary to do this?
This commit is contained in:
Visman 2023-11-07 15:58:00 +07:00
parent 5e1e956de6
commit 40563b4ffc

View file

@ -331,6 +331,10 @@ class Maintenance extends Admin
throw new RuntimeException('Unable to clear cache');
}
if (\function_exists('\\opcache_reset')) {
\opcache_reset();
}
return $this->c->Redirect->page('AdminMaintenance')->message('Clear cache redirect', FORK_MESS_SUCC);
}
}