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) {
|
||||
$filename = $this->getFilename($id);
|
||||
if (!$this->doContains($filename)) {
|
||||
if (!$this->doContains($id)) {
|
||||
return null;
|
||||
}
|
||||
return unserialize(file_get_contents($filename));
|
||||
return unserialize(file_get_contents($this->getFilename($id)));
|
||||
}
|
||||
|
||||
protected function doContains($id) {
|
||||
|
Reference in New Issue
Block a user