mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-15 21:17:20 +00:00
use redis for video cache
Signed-off-by: zzls Selfhost <root@selfhost.zzls.xyz>
This commit is contained in:
@@ -373,7 +373,7 @@ def get_video(id, refresh = true, region = nil, force_refresh = false)
|
||||
video.schema_version != Video::SCHEMA_VERSION # cache control
|
||||
begin
|
||||
video = fetch_video(id, region)
|
||||
Invidious::Database::Videos.update(video)
|
||||
Invidious::Database::Videos.insert(video)
|
||||
rescue ex
|
||||
Invidious::Database::Videos.delete(id)
|
||||
raise ex
|
||||
|
||||
Reference in New Issue
Block a user