Skip to content

Commit

Permalink
fix(get_latest_stats): update cache to expire after 12 hours instead …
Browse files Browse the repository at this point in the history
…of 1 (#1961)
  • Loading branch information
andrewleith authored Oct 2, 2024
1 parent ec1aa29 commit 2f0025b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def from_lambda_api(line):
return isinstance(line, dict)


@cache.memoize(timeout=3600)
@cache.memoize(timeout=12*60*60)
def get_latest_stats(lang, filter_heartbeats=None):
results = service_api_client.get_stats_by_month(filter_heartbeats=filter_heartbeats)["data"]

Expand Down

0 comments on commit 2f0025b

Please sign in to comment.