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

location cache duration in aws environment #735

Closed
apareek-sudo opened this issue Jul 8, 2020 · 2 comments
Closed

location cache duration in aws environment #735

apareek-sudo opened this issue Jul 8, 2020 · 2 comments

Comments

@apareek-sudo
Copy link

Hi Team, as per my understand when jsreport starts it does a crawling for available extensions and stores it.
Due to this the 1st request to lambda takes some time but subsequent requests are always fast.

My query is if there is any duration till which the location cache is maintained?
This is important to me to understand the time requests will take. I am good if such crawling only happen once at time of instantiation of jsreport which means only 1 request will ever take longer time.

Thanks in advance!

@pofider
Copy link
Contributor

pofider commented Jul 8, 2020

Hi, the cache has infinite duration.
It is invalidated when the modification date of node_modules folder is changed.

I believe if you initialize jsreport just once like we do here in the AWS lambda starter kit you don't have to worry about the crawling, it will be done also just once.

@apareek-sudo
Copy link
Author

thanks @pofider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants