1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

Fix: cache flushing to avoid installation error

This commit is contained in:
antedeguemon 2017-08-02 00:38:23 -03:00
parent 4d1dc45a7c
commit b766b958d1

View File

@ -900,6 +900,10 @@ if ($step == 0) {
$instance_config .= "\n";
if (@file_put_contents('inc/instance-config.php', $instance_config)) {
// flushes opcache if php >= 5.5.0 or opcache is installed via PECL
if (function_exists('opcache_invalidate')) {
opcache_invalidate('inc/instance-config.php');
}
header('Location: ?step=4', true, $config['redirect_http']);
} else {
$page['title'] = 'Manual installation required';