You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: