[Config] Fix dumped files invalidation by OPCache

This commit is contained in:
Nicolas Grekas 2017-10-04 11:26:14 +02:00
parent 817f594f48
commit b1290da21b
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,10 @@ class ConfigCache implements ConfigCacheInterface
// discard chmod failure (some filesystem may not support it)
}
}
if (\function_exists('opcache_invalidate') && ini_get('opcache.enable')) {
@opcache_invalidate($this->file, true);
}
}
/**