Spaces:
Running
Running
caching time chnaged to 30s
Browse files- backend/cache_utils.py +1 -1
backend/cache_utils.py
CHANGED
@@ -8,7 +8,7 @@ setup_google_credentials()
|
|
8 |
# Simple in-memory cache
|
9 |
user_cache: Dict[str, Dict[str, Any]] = {}
|
10 |
routing_cache: Dict[str, str] = {}
|
11 |
-
CACHE_DURATION =
|
12 |
ROUTING_CACHE_DURATION = 1800 # 30 minutes for routing
|
13 |
|
14 |
def get_cache_key(user_id: str) -> str:
|
|
|
8 |
# Simple in-memory cache
|
9 |
user_cache: Dict[str, Dict[str, Any]] = {}
|
10 |
routing_cache: Dict[str, str] = {}
|
11 |
+
CACHE_DURATION = 30 # 30 seconds
|
12 |
ROUTING_CACHE_DURATION = 1800 # 30 minutes for routing
|
13 |
|
14 |
def get_cache_key(user_id: str) -> str:
|