chore(*): cleanup and formatting
This commit is contained in:
parent
4f72f68f68
commit
09e820e842
33 changed files with 184 additions and 196 deletions
|
@ -8,12 +8,15 @@ class GenreFetcher extends PageFetcher
|
|||
{
|
||||
$cacheKey = "genre_" . md5($url);
|
||||
$cached = $this->cacheGet($cacheKey);
|
||||
|
||||
if ($cached) return $cached;
|
||||
|
||||
$genre = $this->fetchSingleFromApi("optimized_genres", $url);
|
||||
|
||||
if (!$genre) return null;
|
||||
|
||||
$this->cacheSet($cacheKey, $genre);
|
||||
|
||||
return $genre;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue