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

Implement firestore caching with getDocuments on the server #139

Open
AndrewLester opened this issue Jul 14, 2021 · 0 comments
Open

Implement firestore caching with getDocuments on the server #139

AndrewLester opened this issue Jul 14, 2021 · 0 comments

Comments

@AndrewLester
Copy link
Member

AndrewLester commented Jul 14, 2021

At the moment, caching is simply disabled on the server because localStorage doesn't exist:
https://github.com/apc-gmhs/mustang-mug/blob/4a87e0bbfd8a70fa56c58ef0fe19eb2c233ea007/src/lib/query.js#L58-L62
Instead, we could just set up an object on the server for this or use something like redis. The object has to persist through requests, which I'm not sure how to set up exactly. Just stick whatever we do in an else here, and in the function below it for reading the value.

@JonathanOppenheimer JonathanOppenheimer added this to To do in Menu and order site via automation Jul 21, 2021
@JonathanOppenheimer JonathanOppenheimer added this to the Fourth Meeting milestone Jul 21, 2021
@AndrewLester AndrewLester modified the milestones: Fourth Meeting, Future Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants