Skip to content

Commit

Permalink
添加工具热榜
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetree committed Dec 17, 2023
1 parent 0058733 commit 484d605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/blog/templatetags/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,6 @@ def get_hot_tool_list():
except NoReverseMatch:
continue
if result:
# cache.set(redis_key, result, 3600 * 24) # 缓存一天即可,反正到了新一天自动更换key
cache.set(redis_key, result, 3600 * 24) # 缓存一天即可,反正到了新一天自动更换key
return result
return []

0 comments on commit 484d605

Please sign in to comment.