Skip to content

Commit

Permalink
Merge pull request #145 from Kharhamel/invalidateCache
Browse files Browse the repository at this point in the history
invalidate apache cache during installs
  • Loading branch information
moufmouf committed Feb 27, 2018
2 parents 03daac8 + dedc352 commit 1ccda50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src-dev/Mouf/Installer/ComposerInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ public function save() {

@chmod($this->globalInstallFile, 0664);
@chmod($this->localInstallFile, 0664);
}
if (function_exists("opcache_invalidate")) {
opcache_invalidate($this->globalInstallFile);
opcache_invalidate($this->localInstallFile);
}
}

/**
* Ensures that file $fileName is writtable.
Expand Down

0 comments on commit 1ccda50

Please sign in to comment.