Skip to content

fix: refresh substack feed every 10m and drop dead feed url#53

Merged
kaiiiichen merged 1 commit intomainfrom
fix/substack-stale-cache
May 8, 2026
Merged

fix: refresh substack feed every 10m and drop dead feed url#53
kaiiiichen merged 1 commit intomainfrom
fix/substack-stale-cache

Conversation

@kaiiiichen
Copy link
Copy Markdown
Owner

Summary

  • Reduce the Substack RSS revalidate from 3600600 so newly-published posts appear in the homepage Blog card within ~10 min instead of waiting up to an hour.
  • Drop https://substack.com/@kaiiiichen/feed from FEEDS. Substack now serves the generic discover HTML page at that URL (HTTP 404 for the RSS path), so every refresh was paying for a dead request before falling through to the publication feed.

Why

Posted a new article and it didn't show on the homepage. Verified the RSS at https://kaiiiichen.substack.com/feed already contained it; the staleness was just the 1 h fetch cache TTL.

Test plan

  • npm run lint
  • npm run typecheck
  • npm run test
  • npm run build
  • After deploy: confirm latest post appears on homepage Blog card within ~10 min of publishing.

Made with Cursor

The homepage Blog card was showing stale posts for up to an hour after
publishing because the RSS fetch was cached with `revalidate: 3600`. Drop
that to 600s (10 min) so new posts surface quickly.

Also remove `https://substack.com/@<user>/feed` from FEEDS; Substack now
serves the generic discover page (HTTP 404) at that URL, so every refresh
was paying for a dead request before falling through to the publication
feed.

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kaichen.dev Ready Ready Preview, Comment May 8, 2026 9:29am

@kaiiiichen kaiiiichen merged commit 4407802 into main May 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant