Skip to content

Commit af65e4a

Browse files
committed
refactor: clarify cache expiration notes in analyze_financial_asset function
1 parent 16cf6cb commit af65e4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/analyze_financial_asset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ def analyze_financial_asset(
243243
# 1. Transient errors (network issues, API rate limits) should be retried
244244
# 2. Invalid tickers fail fast (symbol resolution is quick)
245245
# 3. Caching errors could hide resolved issues
246-
# If error caching is needed, implement with short TTL and proper invalidation
246+
# The current cache for successful responses has no expiration (no TTL).
247+
# If error caching is needed in the future, implement with short TTL and proper invalidation.
247248
if use_cache:
248249
_set_cached_analysis(ticker, years, result_json)
249250

0 commit comments

Comments
 (0)