Add cache for all DB queries
Closed this issue · 0 comments
neSpecc commented
If widget will be injected at highload website, each visitor will provide request for counters.
So we need to remove influence of visitors to DB by adding a cache system.
- Profile requests to BD
- Add cache system
- Integrate cache to each request to DB — set 10 mins cache.
- Profile again, prove that all visitors got results from cache
- When someone's makes a new reaction vote, invalidate cache and make new.