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

CacheTime with nuxt generate #126

Closed
mornir opened this issue May 24, 2020 · 2 comments
Closed

CacheTime with nuxt generate #126

mornir opened this issue May 24, 2020 · 2 comments

Comments

@mornir
Copy link

mornir commented May 24, 2020

So if I understand the docs correctly, the cacheTime property doesn't do anything when using nuxt generate?
Does the cache get automatically invalidated when the website is regenerated?

@NicoPennec NicoPennec changed the title [Question] cachTime with nuxt generate CacheTime with nuxt generate May 24, 2020
@NicoPennec
Copy link
Member

Yes, it is correct. On nuxt generate the cache will be have no effect.

The cache system is only used by a server middleware at the second call in SSR mode. But on generate mode, the sitemap xml generator will call it only one time.

@mornir
Copy link
Author

mornir commented May 24, 2020

Thanks for the quick answer and for this great module! 😃

@mornir mornir closed this as completed May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants