mirror of
https://github.com/silverstripe/silverstripe-textextraction
synced 2024-10-22 09:06:00 +00: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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$disableCache) {
|
||||||
$this->getTextCache()->save($this->owner, $text);
|
$this->getTextCache()->save($this->owner, $text);
|
||||||
|
}
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user