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

Better Caching #626

Open
crablar opened this issue Feb 5, 2020 · 4 comments
Open

Better Caching #626

crablar opened this issue Feb 5, 2020 · 4 comments

Comments

@crablar
Copy link
Member

crablar commented Feb 5, 2020

I know that we use Prerender. Can we do some more eager rendering and caching of the main homepage so that it loads more quickly?

@crablar crablar removed the question label Feb 16, 2020
@crablar crablar changed the title Prerender Better Caching Feb 16, 2020
@crablar
Copy link
Member Author

crablar commented Mar 26, 2020

@sterlingrules What caching do we need to avoid the loading wheel on page load?

@sterlingrules
Copy link
Collaborator

sterlingrules commented Mar 27, 2020

@crablar There are a bunch of little things I believe we can do. We can start by assessing requests and just making sure we're not making any unnecessary data calls. Then we can improve the server by leveraging memcache and redis. We can also improve the frontend by leveraging client-side storage via vuex-persist.

@crablar
Copy link
Member Author

crablar commented Mar 27, 2020

What would we cache in redis? What would vuex-persist do?

@sterlingrules
Copy link
Collaborator

In Redis, we could cache expensive requests. Possibly the posts feed, user profiles, or topic pages. Whatever sort of request that would have multiple database queries. Heroku provides a Redis add-on. vuex-persist is similar to redux-persist in that it would cache the client-side application state in localStorage. For example, data — even if out of date — could be shown immediately while new data was being fetched.

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