mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
invalidate opcache after writing header.inc.php if script is cached
so changes take immediate affect in our default container installation with opcache.validate_timestamps=off
This commit is contained in:
parent
14381800e6
commit
b1fae07c75
@ -126,6 +126,11 @@ else
|
||||
{
|
||||
fwrite($f,$newheader);
|
||||
fclose($f);
|
||||
// invalidate OpCache so change have an effect, if scripts are cached and not checked for changes (as in our container installation)
|
||||
if (function_exists('opcache_is_script_cached') && (opcache_is_script_cached($header= realpath('../header.inc.php'))))
|
||||
{
|
||||
opcache_invalidate($header, true);
|
||||
}
|
||||
$GLOBALS['egw_setup']->html->show_header('Saved header.inc.php', False, 'header');
|
||||
echo '<form action="index.php" method="post">';
|
||||
echo '<br />' . lang('Created header.inc.php!');
|
||||
|
Loading…
Reference in New Issue
Block a user