Fix Doctrine metadata not being fetched from cache correctly
[MAILPOET-2232]
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user