mirror of
https://github.com/getgrav/grav.git
synced 2026-06-26 08:51:45 +02:00
Disabled media caching for now
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user