Skip to content
Snippets Groups Projects
Commit 318709e6 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Address some of the comments

parent 5449bf12
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,7 @@ class MDQ extends MetaDataStorageSource ...@@ -149,7 +149,7 @@ class MDQ extends MetaDataStorageSource
return null; return null;
} }
$file = new file($cacheFileName); $file = new File($cacheFileName);
if (!$file->isReadable()) { if (!$file->isReadable()) {
throw new Exception(sprintf('%s: could not read cache file for entity [%s]', strval($file), __CLASS__)); throw new Exception(sprintf('%s: could not read cache file for entity [%s]', strval($file), __CLASS__));
} }
...@@ -208,11 +208,8 @@ class MDQ extends MetaDataStorageSource ...@@ -208,11 +208,8 @@ class MDQ extends MetaDataStorageSource
$cacheFileName = $this->getCacheFilename($set, $entityId); $cacheFileName = $this->getCacheFilename($set, $entityId);
$file = new File($cacheFileName); $file = new File($cacheFileName);
if (!$file->isWritable()) {
throw new Exception(sprintf('%s: could not write cache file for entity [%s]', __CLASS__, strval($file)));
}
Logger::debug(sprintf('%s: Writing cache [%s] => [%s]', __CLASS__, $entityId, strval($file)));
Logger::debug(sprintf('%s: Writing cache [%s] => [%s]', __CLASS__, $entityId, strval($file)));
$this->fileSystem->appendToFile(strval($file), serialize($data), true); $this->fileSystem->appendToFile(strval($file), serialize($data), true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment