Skip to content

Conversation

@conico974
Copy link
Contributor

Should close #706
Everything should be explained in the issue already

One thing we could do that could improve perf in some cases would be to introduce a new optional method in incrementalCache: getMetadata that would retrieve lastModified as well as tags. If provided it would allow us to check the tag cache without having to load the cache value (i.e. probably useless for S3 only incremental cache).
This should probably be done in another PR

@changeset-bot
Copy link

changeset-bot bot commented Jan 31, 2025

🦋 Changeset detected

Latest commit: 4eef3a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@opennextjs/aws Minor
app-pages-router Patch
app-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 31, 2025

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/aws@717

commit: 4eef3a7

};

export type NextModeTagCache = BaseTagCache & {
mode: "nextMode";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't like this name but i couldn't find something better. Maybe someone else will find a better idea

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally would some time to look at the changes, nice!
I have added a few comments.

@conico974 conico974 force-pushed the feat/tag-cache-mode branch 2 times, most recently from cabd61e to 66f4581 Compare February 7, 2025 09:21
@conico974 conico974 requested a review from vicb February 21, 2025 10:08
Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, 2 minor comments.

Thanks!

@conico974 conico974 merged commit b0b1f77 into opennextjs:main Feb 21, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Feb 21, 2025
@conico974 conico974 deleted the feat/tag-cache-mode branch March 14, 2025 12:44
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.

[Feature] Add another mode for the tag cache

2 participants