Log when caching
This commit is contained in:
parent
76193a2e84
commit
fb3ee42ead
1
app.py
1
app.py
|
@ -80,6 +80,7 @@ def proxy(video_id):
|
||||||
</html>
|
</html>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
logging.info(f"Caching response for video ID: {video_id}")
|
||||||
cache.set(video_id, html_response, expire=CACHE_EXPIRATION_SECONDS)
|
cache.set(video_id, html_response, expire=CACHE_EXPIRATION_SECONDS)
|
||||||
|
|
||||||
return Response(html_response, mimetype="text/html")
|
return Response(html_response, mimetype="text/html")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user