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
1 changed files with 3 additions and 1 deletions

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;
}