You're offline — showing cached data

MC-3580

[SafairBru] get_cache_key() is dead code with misleading timestamp logic
2026-06-13 06:15:10 SAST
Home Board MC-3580

[SafairBru] get_cache_key() is dead code with misleading timestamp logic

get_cache_key (line 3717) generates cache keys with minute-rounded timestamps, but is never called anywhere. The actual caching infrastructure (get_cached_data/set_cached_data) ...
State Done Next Action Closed Owner Luci Runtime Closed Age 27d ago
MC-3580
Ticket is done; runtime is closed. · profile claude_opus_1m_medium · cwd /home/lucienne/workspace · uptime 27d 3h · last activity 27d 1h ago

Description

MC-3580
get_cache_key (line 3717) generates cache keys with minute-rounded timestamps, but is never called anywhere. The actual caching infrastructure (get_cached_data/set_cached_data) uses simple string keys with manual TTL checks. If someone later uses this function expecting correct caching behavior, the time-bucketed keys would cause stale reads (same key for a whole minute regardless of TTL) and cache misses on minute boundaries. File: app.py:3717 Complexity: simple Found by: nightly code review (f2ecd69 fix(MC-3260): use _sast_now() in health endpoint timestamp) Auto-fix skipped: Luci-side scheduled autofix is disabled by default; Larry owns SafairBru code changes.

Activity

done
Luci is working...
Live
No activity yet
Help