Merge pull request #34 from jvdanker/disable-cache-fix

Don't try to save the object to the cache if it has been disabled
This commit is contained in:
Damian Mooyman 2017-02-22 15:30:59 +13:00 committed by GitHub
commit 23e255b5c6

View File

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