From fc6b8d3a082813504826dd668e62da3be6949f6a Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 27 Feb 2024 10:41:36 +0300 Subject: [PATCH] debug-cached-authpr --- resolvers/author.py | 1 + 1 file changed, 1 insertion(+) diff --git a/resolvers/author.py b/resolvers/author.py index 0fcf6c88..dfac4a5e 100644 --- a/resolvers/author.py +++ b/resolvers/author.py @@ -136,6 +136,7 @@ async def get_author_follows(_, _info, slug='', user=None, author_id=None): rkey = f'id:{author_id}:follows-authors' logger.debug(f'getting {author_id} follows authors') cached = await redis.execute('GET', rkey) + logger.debug(f'AUTHOR CACHED {cached}') authors = json.loads(cached) if cached else author_follows_authors(author_id) if not cached: prepared = [author.dict() for author in authors]