Fantasy-Map-Generator/modules/io
Claude a22b40e7ca
perf(obsidian): add caching to vault file scanning
The recursive directory scan was running every time the user opened
the note browser, rescanning 13k+ files repeatedly. This was slow
and wasteful.

Changes:
- Add vaultFilesCache object with files, timestamp, and TTL (5 min)
- Check cache before scanning in getVaultFiles()
- Cache results after successful scan
- Add clearVaultCache() function for manual refresh
- Add forceRefresh parameter to bypass cache
- Log cache hits vs misses for debugging

Performance:
- First load: Scans vault (slow, but only once)
- Subsequent loads: Instant (uses cache)
- Cache expires after 5 minutes (auto-refresh)
- User can manually clear cache if needed

This makes opening the note browser instant on subsequent uses.
2025-11-14 05:23:45 +00:00
..
cloud.js chore: parse DEBUG setting as an object 2024-10-22 14:45:25 +02:00
export.js fix(v1.108.11): add external icons to export in base64 format 2025-07-18 02:31:10 +02:00
load.js fix(v1.108.13): add comprehensive race condition guards in load.js 2025-11-14 03:30:12 +00:00
obsidian-bridge.js perf(obsidian): add caching to vault file scanning 2025-11-14 05:23:45 +00:00
save.js chore: remove debug logging from default map feature 2025-11-14 03:55:45 +00:00