refactor(coordinator-api,blockchain-explorer): add response caching and fix timestamp handling

- Add cached decorator to admin stats, job status, payment status, and marketplace stats endpoints
- Configure cache TTLs using get_cache_config for different endpoint types (1min job_list, 30s user_balance, marketplace_stats)
- Import cache_management router and include it in main app with /v1 prefix
- Fix blockchain-explorer formatTimestamp to handle both ISO string and Unix numeric timestamps with type
This commit is contained in:
oib
2026-02-28 21:50:25 +01:00
parent 93ffaf53de
commit 2d97783fb1
13 changed files with 1030 additions and 12 deletions

View File

@@ -12,8 +12,8 @@ markers =
integration: Integration tests (may require external services)
slow: Slow running tests
# Test paths to run
testpaths = tests/cli apps/coordinator-api/tests/test_billing.py
# Test paths to run - restored to full coverage
testpaths = tests
# Additional options for local testing
addopts =