Skip to content

[P3] resolveImagePath rebuilds the project-root allowlist on every image request #143

Description

@eboudrant

Priority: P3 · Review finding: #22

src/handler.js resolveImagePath reads projects.json and realpathSyncs every project root per request — ×50 thumbnails per grid page, plus meta/slice calls.

Fix: cache the realpathed roots for a few seconds (or invalidate on project add/delete).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions