As of now, each time a request is made, Youtube is scraped or youtube-dl is called to return results. This can be made much faster if we introduce Redis datastore as the primary cache, significantly reducing response time for youtube-dl queries.
The time for key expiry can be safely set to 5.5 hours.
As of now, each time a request is made, Youtube is scraped or
youtube-dl
is called to return results. This can be made much faster if we introduce Redis datastore as the primary cache, significantly reducing response time foryoutube-dl
queries.The time for key expiry can be safely set to 5.5 hours.
On miss, we can go to scrape Youtube.