ufosc / SwampScheduler

The future of scheduling is here.
https://osc.rconde.xyz
GNU Affero General Public License v3.0
22 stars 43 forks source link

Add Couse Cache System #69

Open elicampos opened 6 months ago

elicampos commented 6 months ago

Issue: https://github.com/ufosc/SwampScheduler/issues/51 I implemented a system in which it caches the searches and the individuals courses. So if you search something that was previously searched, it will still pull from the cache(Basic React Query which you guys already had), however during this process it also caches each course found. So now for each course search, it sees if the result is in the search or course cache and if neither it calls the API again. The only drawback to this is the fact that very large searches like "EEL" for example, take about 30% longer, as it's caching all the courses but again now every course with EEL pops up almost instantly.

vercel[bot] commented 6 months ago

@elicampos is attempting to deploy a commit to the UF OSC Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 6 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
swamp-scheduler ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2024 6:24pm
1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **swamp-scheduler-v2** | ⬜️ Ignored ([Inspect](https://vercel.com/uf-osc/swamp-scheduler-v2/AoVMUYDqH4Z1izzAcq5XEwKGF2Gf)) | [Visit Preview](https://swamp-scheduler-v2-git-fork-elicampos-coursecache-uf-osc.vercel.app) | | Mar 18, 2024 6:24pm |
UF-OSC-TechLeads commented 6 months ago
image

Run Prettier and commit :)