swsnu / swpp2019-team3

Browse and Organize papers, Share and Expand your ideas (for now, resources for ML and Text Analytics are disabled)
https://www.papersfeed.online
8 stars 2 forks source link

Redis Cache for Searching Papers #211

Closed davin111 closed 4 years ago

davin111 commented 4 years ago

Related Issue: #210 This PR will resolve #210.

Major changes

I applied caching to Django for GET /api/paper/search. When users search papers, the results are cached for 7 days, unless cached keys reach MAX_ENTRIES(1000). One result(one page of results) takes up 2 entries.

I checked this system make searching papers which were searched before by someone not really fast.

Minor changes

Lowered the logging level to ERROR.

Checklist

This pull request...

My codes...