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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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