Skip to content

Consider archived post flag to optimize comment rebuild times #36

@cwage

Description

@cwage

Currently all posts regenerate comments on every build, which contributes to build time. For a blog with 20+ years of posts, most comment activity is on recent entries.

Possible approach:

  • Add an archived: true flag to post front matter (manually or via a script for posts older than N days)
  • Archived posts skip comment rendering during normal builds
  • A separate scheduled job (cron via GitHub Actions) does a full rebuild periodically to pick up any straggler comments on old posts
  • The comment form could also be hidden on archived posts to discourage submissions

This is a low-priority optimization — just capturing the idea for later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions