Fix wasteful cache generation

This commit is contained in:
grandeljay 2022-09-15 15:53:22 +02:00
parent 5691fe2ad2
commit 6384e0ada1

View file

@ -37,7 +37,7 @@ class Embed extends Cache
/** Get existing info */
$info = $this->exists() ? json_decode(file_get_contents($filepath)) : new \stdClass();
if (($this->exists() && $this->getAge() > $this->maxAge) || true === $generateCache) {
if (true === $generateCache) {
$infoToSave = $info;
try {