Skip to content

Commit a7ac100

Browse files
committed
Remove LOCK_EX That Breaks Cache Usage on NFS
This removes the exclusive lock that was introduced in symfony#24960. NFS File Systems do not support exclusive locking, and generates a lot of errors every time you try to do anything with che cache.
1 parent 22a6a7e commit a7ac100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function setClassCache(array $classes)
423423
*/
424424
public function setAnnotatedClassCache(array $annotatedClasses)
425425
{
426-
file_put_contents(($this->warmupDir ?: $this->getCacheDir()).'/annotations.map', sprintf('<?php return %s;', var_export($annotatedClasses, true)), LOCK_EX);
426+
file_put_contents(($this->warmupDir ?: $this->getCacheDir()).'/annotations.map', sprintf('<?php return %s;', var_export($annotatedClasses, true)));
427427
}
428428

429429
/**

0 commit comments

Comments
 (0)