Spaces:
Sleeping
Sleeping
ADD: instantiate query_cache with a TTL of 600 seconds
Browse files- core/cache.py +1 -0
core/cache.py
CHANGED
|
@@ -61,5 +61,6 @@ class RateLimiter:
|
|
| 61 |
|
| 62 |
|
| 63 |
inventory_cache = TTLCache(ttl=300)
|
|
|
|
| 64 |
credentials_cache = TTLCache(ttl=600)
|
| 65 |
rate_limiter = RateLimiter(max_calls=20, period=60)
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
inventory_cache = TTLCache(ttl=300)
|
| 64 |
+
query_cache = TTLCache(ttl=600)
|
| 65 |
credentials_cache = TTLCache(ttl=600)
|
| 66 |
rate_limiter = RateLimiter(max_calls=20, period=60)
|