diff --git a/tinyfilemanager.php b/tinyfilemanager.php
index d1848d95..b971979f 100644
--- a/tinyfilemanager.php
+++ b/tinyfilemanager.php
@@ -570,6 +570,7 @@ function getClientIP()
$theme = $te3;
}
$cfg->save();
+ session_write_close();
echo true;
}
@@ -1639,8 +1640,6 @@ function getSelected($l)
-
- * .
@@ -3691,7 +3690,11 @@ function save()
for ($x = 3; $x < count($lines); $x++) {
@fputs($fh, $lines[$x], strlen($lines[$x]));
}
+ @fflush($fh);
@fclose($fh);
+ if (is_callable("opcache_invalidate")) {
+ @opcache_invalidate($fm_file, true);
+ }
}
}
}