Videos: Increase video cache to 4 hours
All checks were successful
Invidious CI / build (push) Successful in 5m19s

This commit is contained in:
Fijxu 2024-10-12 02:59:36 -03:00
parent fc0a3ab307
commit 917cede8b7
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -10,8 +10,8 @@ module Invidious::Database::Videos
ON CONFLICT (id) DO NOTHING
SQL
REDIS_DB.set(video.id, video.info.to_json, ex: 3600)
REDIS_DB.set(video.id + ":time", video.updated, ex: 3600)
REDIS_DB.set(video.id, video.info.to_json, ex: 14400)
REDIS_DB.set(video.id + ":time", video.updated, ex: 14400)
end
def delete(id)