Commit 06acba04 authored by Krzysztof Kocot's avatar Krzysztof Kocot Committed by Gandalf
Browse files

#795 Deduplicate getPost calls in post page

Use React cache() to deduplicate getPost calls between
generateMetadata and page prefetch within the same request.

- Add getPostCached to cached-api.ts
- Update post layout and page to use cached version

This eliminates duplicate API calls for the same post data.

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude Opus 4.5 <noreply@anthropic.com>
parent 7ba2b35e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment