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:
parent
5e1e956de6
commit
40563b4ffc
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue