Fix wasteful cache generation
This commit is contained in:
parent
5691fe2ad2
commit
6384e0ada1
1 changed files with 1 additions and 1 deletions
2
src/classes/cache/embed.php
vendored
2
src/classes/cache/embed.php
vendored
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue