Skip to content

Commit 859c968

Browse files
committed
feat: Add PSR-16 caching support to JsonLoader
Adds PSR-16 caching to JsonLoader for inventory JSON files. By default, uses an in-memory ArrayAdapter that deduplicates HTTP requests within a process. For persistent caching across CLI invocations, inject any PSR-16 compatible cache implementation. Features: - PSR-16 interface: Use any compatible cache implementation - In-memory default: Automatic request deduplication - Multi-tier support: Use Symfony ChainAdapter for memory + filesystem - Configurable TTL: Default 1 hour, customizable per use case - Hash-based keys: Uses xxh128 for URL to cache key mapping Performance impact: ~53% faster rendering for interlink-heavy documentation by avoiding repeated HTTP requests.
1 parent 8bba205 commit 859c968

File tree

6 files changed

+697
-59
lines changed

6 files changed

+697
-59
lines changed

composer.lock

Lines changed: 279 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)