Fix Doctrine metadata not being fetched from cache correctly

[MAILPOET-2232]
This commit is contained in:
Jan Jakeš
2019-07-30 13:04:40 +02:00
committed by M. Shull
parent f267768e60
commit 310133ec3f

View File

@@ -18,11 +18,10 @@ class MetadataCache extends CacheProvider {
} }
protected function doFetch($id) { protected function doFetch($id) {
$filename = $this->getFilename($id); if (!$this->doContains($id)) {
if (!$this->doContains($filename)) {
return null; return null;
} }
return unserialize(file_get_contents($filename)); return unserialize(file_get_contents($this->getFilename($id)));
} }
protected function doContains($id) { protected function doContains($id) {