Don't try to save the object to the cache if it has been disabled

This commit is contained in:
Juan van den Anker 2017-02-22 15:17:32 +13:00
parent 1b89000fcd
commit 0761311170

View File

@ -83,7 +83,9 @@ class FileTextExtractable extends DataExtension
return null;
}
if (!$disableCache) {
$this->getTextCache()->save($this->owner, $text);
}
return $text;
}