BUGS-NYU / nyu-syllabi

Repository of Syllabi for NYU
https://www.nyusyllabi.com
GNU General Public License v3.0
2 stars 2 forks source link

Caching data fetches #2

Closed aminoa closed 9 months ago

aminoa commented 1 year ago

Currently a syllabi fetch is done when the user navigates to a school page; caching this (and invalidating it every 1 min or so) would significantly decrease API requests

aminoa commented 1 year ago

The site would need some separation between the client/server components to allow for storing the syllabi in a cookie (or localstorage)

aminoa commented 9 months ago

This should now be solved by the supabase switch; the website invalidates the data requested from the syllabi db every 60 seconds - else, uses the cache.