aboutsummaryrefslogtreecommitdiff
path: root/caches/FileCache.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--caches/FileCache.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/caches/FileCache.php b/caches/FileCache.php
index dfd295e8..24a9872f 100644
--- a/caches/FileCache.php
+++ b/caches/FileCache.php
@@ -53,11 +53,14 @@ class FileCache implements CacheInterface
'value' => $value,
];
$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
+ $bytes = file_put_contents($cacheFile, serialize($item));
+
+ // 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));
+ // Typically means no disk space remaining
+ $this->logger->warning(sprintf('Failed to write to: %s', $cacheFile));
}
}
.rs?h=goodby_static_mut&id=abd917ceff64e5f4fd587ae1f124b575949dc233&follow=1'>work on early/late resourcesGravatar Per Lindgren 5-10/+91 2021-03-12idle/init ok, late wipGravatar Per Lindgren 3-0/+120 2021-03-12callback exampleGravatar Per Lindgren 1-3/+3 2021-03-12more examplesGravatar Per Lindgren 4-10/+162 2021-03-12task local minimal examplesGravatar Per Lindgren 2-0/+69 2021-03-12task local early now with RacyCellGravatar Per Lindgren 4-36/+62 2021-03-11added .no to not yet supported examplesGravatar Per Lindgren 17-826/+9 2021-03-11task_lockal wipGravatar Per Lindgren 3-3/+6 2021-03-11MONOTONIC storage now RacyCellGravatar Per Lindgren 2-2/+1 2021-03-11wip2 (one error to go)Gravatar Per Lindgren 1-1/+1 2021-03-11wipGravatar Per Lindgren 2-5/+5 2021-03-11doc comments to source file + timer queue using RacyCellGravatar Per Lindgren 3-12/+17 2021-03-11fixed Cargo.tomlGravatar Per Lindgren 1-1/+5 2021-03-11now only spawn, spawn_at, spawn_afterGravatar Per Lindgren 2-2/+2