From 917cede8b77a0a6abbe137c4cfbeef45d1c8ab96 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sat, 12 Oct 2024 02:59:36 -0300 Subject: [PATCH] Videos: Increase video cache to 4 hours --- src/invidious/database/videos.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/database/videos.cr b/src/invidious/database/videos.cr index 776ef5b1..a61e4eec 100644 --- a/src/invidious/database/videos.cr +++ b/src/invidious/database/videos.cr @@ -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)