stamford-syntax-club / course-compose

Course Compose is a course-review website tailored for Stamford students, providing a platform for sharing and discovering insights about various courses
MIT License
2 stars 0 forks source link

feat: endpoint caching for get course api #36

Closed chinathaip closed 8 months ago

chinathaip commented 8 months ago

Apparently GitHub doesn't allow you to change the target branch after a PR has been created.. so...

Create a middleware that attempts to get cached data using URL path as key,

if data is found, simply return it if not, retrieve data from the source and cache it (expires after 1 week)

ref: https://github.com/stamford-syntax-club/course-compose/pull/28