Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
947b7c2
1
Parent(s):
e4d2970
reduce cache time for stats
Browse files
app.py
CHANGED
@@ -355,7 +355,7 @@ def number_of_datasets_tracked():
|
|
355 |
return len(datasets_to_models_db)
|
356 |
|
357 |
|
358 |
-
@cached(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"
|