-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
Almost every time we release we get errors from the following line for random css and js files.
https://github.com/RWOverdijk/AssetManager/blob/master/src/AssetManager/Cache/FilePathCache.php#L94
I believe this happens because more than one person is asking for the same file at the same time. Perhaps two php threads are trying to write the same file at the same time.
I had to change it to this in our local version to prevent errors in our logs every release:
if (@file_put_contents($tmpFilePath, $value, LOCK_EX) === false) {
//THIS IS THE MODIFICATION THAT PREVENTS ERRORS DURING RELEASES
return;
// throw new RuntimeException('Unable to write file ' . $this->cachedFile());
}Metadata
Metadata
Assignees
Labels
No labels