We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e22d364 commit a5fb28bCopy full SHA for a5fb28b
src/components/Storage.php
@@ -196,10 +196,12 @@ protected function writePackagesJson($hash)
196
],
197
];
198
$this->getLocker()->lock();
199
+ $filename = $this->buildPath('packages.json');
200
try {
- if (file_put_contents($this->buildPath('packages.json'), Json::encode($data)) === false) {
201
+ if (file_put_contents($filename, Json::encode($data)) === false) {
202
throw new AssetFileStorageException('Failed to write main packages.json');
203
}
204
+ touch($filename);
205
} finally {
206
$this->getLocker()->release();
207
0 commit comments