Skip to content

On-Demand Revalidation #127

Description

@Maniload

Make us of Next.js On-Demand Revalidation.

Currently we use interval based revalidation which means pages get rebuilt if a user visits a page and a fixed interval has passed since the last page rebuild. Because of this, pages often get rebuilt even if they haven't changed. This results in unnecessary API requests and CPU usage on the server.

To reduce this, we can make use of On-Demand Revalidation, an experimental feature of Next.js. This way pages only get rebuilt, if the back-end (our database editing tool, Nova) sends a request to the client. How this will work needs to be planned in detail. We need to be careful to not have any blind spots (pages that don't get rebuilt at all).

See also: AnimeThemes/animethemes-server#364

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnextjsHeavy use of Next.js is needed for this issue

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions