Skip to content

perf(players): cache server.properties/whitelist.json/ops.json reads in _build_view #108

@AbstractNucleus

Description

@AbstractNucleus

What: _build_view in routes/players.py re-reads server.properties, whitelist.json, and ops.json on every render.

Why: Acceptable at today's scale (<10 servers) but the read pattern will hurt once that grows or once anyone hits this surface repeatedly.

Approach: Cache each file by (path, mtime). Trivial wrapper. Invalidates naturally on edit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions