docs(nginx, phpfpm): improve install and config instructions (#3866)

This commit is contained in:
Dag 2023-12-28 23:26:14 +01:00 committed by GitHub
parent 2032ed18c4
commit 7dbe106582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 152 additions and 38 deletions

View file

@ -54,6 +54,7 @@ class FileCache implements CacheInterface
];
$cacheFile = $this->createCacheFile($key);
$bytes = file_put_contents($cacheFile, serialize($item), LOCK_EX);
// todo: Consider tightening the permissions of the created file. It usually allow others to read, depending on umask
if ($bytes === false) {
// Consider just logging the error here
throw new \Exception(sprintf('Failed to write to: %s', $cacheFile));