Skip to content

feat: implemented incremental cache #2288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

nickytonline
Copy link

@nickytonline nickytonline commented Aug 31, 2023

Description

Documentation

Tests

You can test this change yourself like so:

  1. TODO

Relevant links (GitHub issues, etc.) or a picture of cute animal

Fixes

Fixes https://github.com/netlify/pod-ecosystem-frameworks/issues/568

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for netlify-plugin-nextjs-next-auth-demo failed.

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/64fd75b067076100083c274b

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo failed.

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/64fd75b0b40a23000872dc0f

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/64fd75b08bd5d10007dbb0aa
😎 Deploy Preview https://deploy-preview-2288--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for next-plugin-edge-middleware failed.

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/64fd75b0b45c79000853ebc6

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for netlify-plugin-nextjs-static-root-demo failed.

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/64fd75b0e9517d00082a8719

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/64fd75b002135800078e8aca
😎 Deploy Preview https://deploy-preview-2288--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/64fd75b08c128a0008c6cf00
😎 Deploy Preview https://deploy-preview-2288--next-plugin-canary.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Aug 31, 2023
@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for nextjs-plugin-custom-routes-demo failed.

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/64fd75b0c5082e0008a99027

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for netlify-plugin-nextjs-demo failed.

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/64fd75b169703600085af674

@@ -0,0 +1,34 @@
import type { Blobs } from '@netlify/blobs/dist/src/main'
Copy link
Author

Choose a reason for hiding this comment

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

This and memoize won't end up being part of this PR as they're already in #2287.

@nickytonline nickytonline self-assigned this Aug 31, 2023
@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for netlify-plugin-nextjs-demo-all-flags failed.

Name Link
🔨 Latest commit fc7a91a
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo-all-flags/deploys/64fd75b1f748e80008ecfd08

@@ -89,5 +89,6 @@ module.exports = {
},
experimental: {
optimizeCss: false,
incrementalCacheHandlerPath: require.resolve('./cache-handler.js'),
Copy link
Author

Choose a reason for hiding this comment

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

This won't be hard-coded. This is hard-coded for the moment for testing purposes. The real implementation will need to generate this and modify the Next.js config, pre-build.

@@ -0,0 +1,19 @@
const cache = new Map()
Copy link
Author

Choose a reason for hiding this comment

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

This uses an in memory cache for the moment for debugging purposes to see key and values in the cache.

@nickytonline nickytonline changed the base branch from main to nickytonline/blob-storage September 12, 2023 20:19
@nickytonline nickytonline force-pushed the nickytonline/incremental-cache branch from fc7a91a to f316e5f Compare September 12, 2023 20:19
@nickytonline
Copy link
Author

I merged this branch into #2287.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant