mirror of
https://github.com/silverstripe/silverstripe-textextraction
synced 2024-10-22 11:06:00 +02:00
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
Block a user