Skip to content

Commit

Permalink
Updated opcache_reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed Mar 28, 2021
1 parent 5a78cba commit fa6acc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@
$filename = array_shift($opArgs);
$exclude = array_shift($opArgs) == '--exclude' ? " --exclude '" . basename(array_shift($opArgs)) . "'" : '';
$success = $site->restore($filename, $exclude);
opcache_reset(); // Clear php Opcache in case files changed during restore.
if (function_exists('opcache_reset')) {
opcache_reset(); // Clear php Opcache in case files changed during restore.
}
break;

case 'download':
Expand Down

0 comments on commit fa6acc0

Please sign in to comment.