davanstrien HF staff commited on
Commit
947b7c2
·
1 Parent(s): e4d2970

reduce cache time for stats

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -355,7 +355,7 @@ def number_of_datasets_tracked():
355
  return len(datasets_to_models_db)
356
 
357
 
358
- @cached(cache=ten_min_cache)
359
  def generate_summary_stats():
360
  return (
361
  f"Currently there are {number_of_users_tracking_datasets()} users tracking"
 
355
  return len(datasets_to_models_db)
356
 
357
 
358
+ @cached(cache=TTLCache(maxsize=1, ttl=30))
359
  def generate_summary_stats():
360
  return (
361
  f"Currently there are {number_of_users_tracking_datasets()} users tracking"