recloudstream / cloudstream

Android app for streaming and downloading media.
GNU General Public License v3.0
6.79k stars 544 forks source link

add cache when searching #1307

Closed Turhvjbufv closed 2 months ago

Turhvjbufv commented 2 months ago

Describe your suggested feature

If I press on an entry, then exit it and go to another entry and then go back, it cause the entry to load again, I'm thinking cache would be much better as there's barely any chance that the entry stuff changed in the short time you search

Other details

Maybe add pull to refresh gesture in entries to counter the potential problem

Acknowledgements

fire-light42 commented 2 months ago

Content should be cached for 10min or the last 20 entries, however the loading might still be there, because even if the result is cached it has to process that cache for series with a lot of episodes.

https://github.com/recloudstream/cloudstream/blob/master/app/src/main/java/com/lagradost/cloudstream3/ui/APIRepository.kt#L84