openhands openhands commited on
Commit
da96293
·
1 Parent(s): b978a6b

Reduce cache TTL from 1 hour to 15 minutes for faster data refresh

Browse files
Files changed (1) hide show
  1. setup_data.py +2 -2
setup_data.py CHANGED
@@ -25,8 +25,8 @@ _last_fetch_time = None
25
  _fetch_lock = threading.Lock()
26
  _refresh_callbacks = [] # Callbacks to call after data refresh
27
 
28
- # Cache TTL can be configured via environment variable (default: 1 hour = 3600 seconds)
29
- CACHE_TTL_SECONDS = int(os.environ.get("CACHE_TTL_SECONDS", 3600))
30
 
31
 
32
  def get_repo_clone_dir() -> Path:
 
25
  _fetch_lock = threading.Lock()
26
  _refresh_callbacks = [] # Callbacks to call after data refresh
27
 
28
+ # Cache TTL can be configured via environment variable (default: 15 minutes = 900 seconds)
29
+ CACHE_TTL_SECONDS = int(os.environ.get("CACHE_TTL_SECONDS", 900))
30
 
31
 
32
  def get_repo_clone_dir() -> Path: