fetch imdb del cover cache

This commit is contained in:
xiaomlove
2025-09-21 19:42:38 +07:00
parent 6b242dea36
commit d906f73b03
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -312,7 +312,7 @@ class Imdb
if (!$enabled) {
return '';
}
return NexusDB::remember("imdb:cover:$imdbId", 3600, function() use ($imdbId) {
return NexusDB::remember(self::getMovieCoverCacheKey($imdbId), 864000, function() use ($imdbId) {
if ($this->getCacheStatus($imdbId) != 1) {
return '';
}
@@ -323,6 +323,10 @@ class Imdb
return '';
}
});
}
public static function getMovieCoverCacheKey($imdbId): string
{
return "imdb:cover:$imdbId";
}
}