Skip to content

Commit

Permalink
Merge pull request #343 from steemit/fix_cache_key
Browse files Browse the repository at this point in the history
fix cache key
  • Loading branch information
yuekun0707 authored Oct 11, 2024
2 parents 3fd055f + a307b66 commit 33204e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hive/server/condenser_api/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def get_trending_tags(context, start_tag: str = '', limit: int = 250):
""" % seek

out = []
for row in await context['db'].query_all(sql, limit=limit, start_tag=start_tag, cache_key="get_trending_tags_"+start_tag+"_"+limit, cache_ttl=5*60):
for row in await context['db'].query_all(sql, limit=limit, start_tag=start_tag, cache_key=f"get_trending_tags_{start_tag}_{limit}", cache_ttl=5*60):
out.append({
'name': row['category'],
'comments': row['total_posts'] - row['top_posts'],
Expand Down

0 comments on commit 33204e1

Please sign in to comment.