From a5748bd37bb0411b0ddd507120c72fa0335d5c39 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Thu, 29 Jan 2026 16:46:22 +0100 Subject: feat(pleroma): add incremental caching for post fetching Use Astro 5 MetaStore to persist sync state (newestStatusId, lastSyncTime, accountId) between builds. On subsequent builds, only fetch new posts via the Mastodon API since_id parameter instead of re-fetching all ~344 statuses. Includes force-refresh support via PLEROMA_FORCE_REFRESH env var or config option, cache TTL, and automatic fallback to full fetch on errors. Co-Authored-By: Claude Opus 4.5 --- SPRINT.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'SPRINT.md') diff --git a/SPRINT.md b/SPRINT.md index 541cdab..ba4c150 100644 --- a/SPRINT.md +++ b/SPRINT.md @@ -7,9 +7,6 @@ Goal: Initialize project tooling for Claude Code ## In Progress ## Backlog (Prioritized) -- [ ] **[FEATURE-001]** Add caching for Pleroma post fetching - - Implement local cache to avoid re-fetching all posts from social.craftknight.com on every build - - Cache should store fetched posts and only pull new/updated ones - [ ] **[FEATURE-002]** Import posts from old Mastodon instance - Fetch posts from https://mastodon.com.pl/@knightdave using the same approach as the Pleroma loader - Integrate into the existing content collection alongside Pleroma posts @@ -21,6 +18,9 @@ Goal: Initialize project tooling for Claude Code - Let users see total page count and jump to specific pages ## Completed This Sprint +- [x] **[FEATURE-001]** Add caching for Pleroma post fetching + - Completed: 2026-01-29 + - Notes: Incremental fetching via Astro 5 MetaStore + Mastodon since_id API. Supports force refresh via env var, config option, and cache TTL. - [x] **[CHORE-001]** Initial Claude Code setup - Completed: 2026-01-29 - Notes: Added CLAUDE.md, SPRINT.md, .claude/settings.local.json -- cgit v1.2.3