Log when caching

This commit is contained in:
MMaker 2025-01-31 14:33:41 -05:00
parent 76193a2e84
commit fb3ee42ead
Signed by: mmaker
GPG Key ID: CCE79B8FEDA40FB2

1
app.py
View File

@ -80,6 +80,7 @@ def proxy(video_id):
</html>
"""
logging.info(f"Caching response for video ID: {video_id}")
cache.set(video_id, html_response, expire=CACHE_EXPIRATION_SECONDS)
return Response(html_response, mimetype="text/html")