feat(*): add image grids for album and associated media displays
This commit is contained in:
parent
9b4baad5fb
commit
36fbba761a
53 changed files with 1179 additions and 764 deletions
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App\Classes;
|
||||
|
||||
class GlobalsFetcher extends PageFetcher
|
||||
{
|
||||
public function fetch(): ?array
|
||||
{
|
||||
$cacheKey = "globals";
|
||||
$cached = $this->cacheGet($cacheKey);
|
||||
|
||||
if ($cached) return $cached;
|
||||
|
||||
$globals = $this->fetchFromApi("optimized_globals");
|
||||
|
||||
if (empty($globals)) return null;
|
||||
|
||||
$this->cacheSet($cacheKey, $globals[0]);
|
||||
|
||||
return $globals[0];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue