Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Add caching #5

Open
TylerBarnes opened this issue Apr 19, 2019 · 3 comments
Open

Add caching #5

TylerBarnes opened this issue Apr 19, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@TylerBarnes
Copy link
Owner

This plugin is currently downloading all images on every build. There is commented out code related to caching in gatsby-node.js so this should be fairly simple to implement.

@TylerBarnes TylerBarnes added the enhancement New feature or request label Apr 19, 2019
@cseebach-tpc
Copy link

This is a great idea for performance - when you do this, you might consider including instructions on how to invalidate the cache in an FAQ, (I think that would just be rm -rf .cache but I could be wrong) just in case the Wordpress ID is duplicated for some reason.

@TylerBarnes
Copy link
Owner Author

Hey @cseebach-tpc gatsby has a cli command for this now. gatsby clean deletes the public and .cache folder for you.

@cseebach-tpc
Copy link

@TylerBarnes Sweet! I was unaware.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants