Skip to content

Commit 1ccda50

Browse files
authored
Merge pull request #145 from Kharhamel/invalidateCache
invalidate apache cache during installs
2 parents 03daac8 + dedc352 commit 1ccda50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src-dev/Mouf/Installer/ComposerInstaller.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ public function save() {
114114

115115
@chmod($this->globalInstallFile, 0664);
116116
@chmod($this->localInstallFile, 0664);
117-
}
117+
if (function_exists("opcache_invalidate")) {
118+
opcache_invalidate($this->globalInstallFile);
119+
opcache_invalidate($this->localInstallFile);
120+
}
121+
}
118122

119123
/**
120124
* Ensures that file $fileName is writtable.

0 commit comments

Comments
 (0)