From 84f0a27d863c8119bec03980a7d1bb066af4b62e Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 10 Mar 2017 12:50:29 -0500 Subject: [PATCH] use readable cache keys --- src/API/Kitsu/Model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/API/Kitsu/Model.php b/src/API/Kitsu/Model.php index 116dcb19..ef17ee91 100644 --- a/src/API/Kitsu/Model.php +++ b/src/API/Kitsu/Model.php @@ -41,7 +41,7 @@ class Model { use ContainerAware; use KitsuTrait; - const FULL_TRANSFORMED_LIST_CACHE_KEY = 'FullOrganizedAnimeList'; + const FULL_TRANSFORMED_LIST_CACHE_KEY = 'kitsu-full-organized-anime-list'; /** * Class to map anime list items @@ -422,7 +422,7 @@ class Model { */ public function getAnimeList(string $status, int $limit = 600, int $offset = 0): array { - $cacheItem = $this->cache->getItem($this->getHashForMethodCall($this, __METHOD__, [$status])); + $cacheItem = $this->cache->getItem("kitsu-anime-list-{$status}"); if ( ! $cacheItem->isHit()) { @@ -487,7 +487,7 @@ class Model { ] ]; - $cacheItem = $this->cache->getItem($this->getHashForMethodCall($this, __METHOD__, $options)); + $cacheItem = $this->cache->getItem("kitsu-manga-list-{$status}"); if ( ! $cacheItem->isHit()) {