8000 Merge branch '2.7' into 2.8 · symfony/symfony@8f41e33 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8f41e33

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [Config] Fix dumped files invalidation by OPCache
2 parents fc6b9ec + 253cde2 commit 8f41e33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Config/ResourceCheckerConfigCache.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ public function write($content, array $metadata = null)
150150
// discard chmod failure (some filesystem may not support it)
151151
}
152152
}
153+
154+
if (\function_exists('opcache_invalidate') && ini_get('opcache.enable')) {
155+
@opcache_invalidate($this->file, true);
156+
}
153157
}
154158

155159
/**

0 commit comments

Comments
 (0)
0