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

Add in library cache functionality #3

Open
developerKumar opened this issue Jun 15, 2022 · 0 comments
Open

Add in library cache functionality #3

developerKumar opened this issue Jun 15, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@developerKumar
Copy link
Owner

What needs to be done?

Add a feature to store the fetched data in cache, and if we get same function again then use from cache not from code. It should be configurable.

Benefits

Consider a case: Where we are generating 1k static pages, and those pages uses some common data, and that data is being fetch from some other API like CMS or something,
then it will hit 1k times the CMS to get same data, So to avoid these unnecessary hits at build time, we can use cache in library to store the data and use the same data if function name is same for upcoming pages at build time.

@developerKumar developerKumar added the enhancement New feature or request label Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant