Skip to content
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

[Feature] Cache plugin state for processing images #37

Open
colbyfayock opened this issue Oct 17, 2022 · 0 comments
Open

[Feature] Cache plugin state for processing images #37

colbyfayock opened this issue Oct 17, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@colbyfayock
Copy link
Collaborator

Feature Request

Is your feature request related to a problem? Please describe.

We can take advantage of the Netlify cache utilities to save the recorded state of assets.

This includes keeping records of what images are uploaded as well as things like what upload preset was used (if any) so that we can force re-process all images with the new upload preset if set.

We're currently storing

Describe the solution you'd like

We're currently storing asset state in the following internally accessible object:

https://github.com/colbyfayock/netlify-plugin-cloudinary/blob/main/src/index.js#L22

We may be able to latch on to this for storing the results.

Netlify has a cache util that would allow us to easily store these details:

https://github.com/netlify/build/blob/main/packages/cache-utils/README.md

@colbyfayock colbyfayock added the help wanted Extra attention is needed label Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant