8000 Merge branch '2.8' into 3.3 · symfony/symfony@0a963d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a963d2

Browse files
committed
Merge branch '2.8' into 3.3
* 2.8: [Config] Fix dumped files invalidation by OPCache
2 parents b7f1daa + 8f41e33 commit 0a963d2

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