Don't try to save the object to the cache if it has been disabled
This commit is contained in:
parent
1b89000fcd
commit
0761311170
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue