[UI] Fix /atlas 500 error — _cache_page NameError

← All Specs

Goal

Fix the /atlas page 500 error caused by a NameError: name '_cache_page' is not defined.

Acceptance Criteria

/atlas page loads without 500 error

Obsolescence Analysis

Root cause: _cache_page("atlas", page) was called but the function doesn't exist — should be _set_cached_page + return.

Already fixed on main: This was resolved by commit 50f38aa71 ("[UI] Fix /atlas 500 error and optimize performance [task:840112c6-224d-468b-b4a3-8d7446ea7793]") which:

  • Added _get_cached_page("atlas") check at line 48272
  • Changed return _cache_page("atlas", page)_set_cached_page("atlas", page) + return page
  • Added DB indexes for knowledge_edges(edge_type) and knowledge_edges(created_at)
  • Verification: curl http://localhost:8000/atlas → HTTP 200 ✓

    Spec file on main: docs/planning/specs/840112c6_224_spec.md documents this fix.

    Work Log

    2026-04-13 23:52 PT — Slot 54

    • Investigated task: found _cache_page NameError fix already on main via 50f38aa71
    • Verified /atlas returns HTTP 200 (live service)
    • Checked origin/main — line 48272 has _get_cached_page("atlas") check and line 48491 has _set_cached_page("atlas", page)
    • No code changes needed — task is already resolved
    • Closing as "already addressed by 50f38aa71: _cache_page→_set_cached_page fix landed on main 2026-04-02"

    Tasks using this spec (1)
    [UI] Fix /atlas 500 error — _cache_page NameError
    UI done P95
    File: fe943db4_2d3_spec.md
    Modified: 2026-05-01 20:13
    Size: 1.5 KB