Disabled media caching for now

This commit is contained in:
Matias Griese
2022-06-08 19:11:30 +03:00
parent 8c2c8d3f15
commit e3f5b7ea04

View File

@@ -88,7 +88,8 @@ trait MediaTrait
try {
// Use cached media if possible.
$media = $cache->get($cacheKey);
// TODO: Do we still want to cache media?
$media = null; // $cache->get($cacheKey);
} catch (Throwable $e) {
}
@@ -102,7 +103,7 @@ trait MediaTrait
$media = new Media('', []);
}
$cache->set($cacheKey, $media);
// $cache->set($cacheKey, $media);
}
$this->media = $media;