8000 [Config] Fix dumped files invalidation by OPCache · symfony/symfony@9c8fa7e · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c8fa7e

Browse files
[Config] Fix dumped files invalidation by OPCache
1 parent 817f594 commit 9c8fa7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Config/ConfigCache.php

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

154158
/**

0 commit comments

Comments
 (0)
0