mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Force PHP opcache_invalidate due to upgrade error reports "Missing version directory"
This commit is contained in:
parent
b9412ac09b
commit
bef1a378ca
|
@ -13,5 +13,9 @@ if (file_exists(APP_INDEX_ROOT_PATH.'snappymail/v/'.APP_VERSION.'/include.php'))
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '[105] Missing snappymail/v/'.APP_VERSION.'/include.php';
|
echo '[105] Missing snappymail/v/'.APP_VERSION.'/include.php';
|
||||||
|
// opcache_reset is a terrible solution
|
||||||
|
// is_callable('opcache_reset') && opcache_reset();
|
||||||
|
// opcache_invalidate will not do everything
|
||||||
|
is_callable('opcache_invalidate') && opcache_invalidate(__FILE__, true);
|
||||||
exit(105);
|
exit(105);
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,6 +207,9 @@ abstract class Upgrade
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('Extract core files failed');
|
throw new \Exception('Extract core files failed');
|
||||||
}
|
}
|
||||||
|
// opcache_reset is a terrible solution
|
||||||
|
// \is_callable('opcache_reset') && \opcache_reset();
|
||||||
|
\is_callable('opcache_invalidate') && \opcache_invalidate($target.'/index.php', true);
|
||||||
} finally {
|
} finally {
|
||||||
$sTmp && \unlink($sTmp);
|
$sTmp && \unlink($sTmp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue