[skip ci] reduce player cache duration
This commit is contained in:
1 parent
9d7b792f42
commit
e3c0c026f9
1 file changed
+2
-4
@@ -137,11 +137,9 @@ namespace Invidious
|
|||||||
end function
|
end function
|
||||||
|
|
||||||
function GetVideoMetadata(videoId as string, options = invalid as object) as object
|
function GetVideoMetadata(videoId as string, options = invalid as object) as object
|
||||||
' 5 hours cache. Videos should expire in 6 hours, but since we don't
|
' 10 minutes cache.
|
||||||
' have the exact expiration time, we'll use 5 hours. Invidious currently
|
|
||||||
' Does a fresh fetch if the cache is older than 10 minutes.
|
|
||||||
' https://github.com/iv-org/invidious/blob/069e91d2a609b1df94bdfbb693335969b2a281d8/src/invidious/videos.cr#L349
|
' https://github.com/iv-org/invidious/blob/069e91d2a609b1df94bdfbb693335969b2a281d8/src/invidious/videos.cr#L349
|
||||||
cacheSeconds = OptionUtils.GetOrDefault(options, "cacheSeconds", 18000) ' 5 hours
|
cacheSeconds = OptionUtils.GetOrDefault(options, "cacheSeconds", 600) ' 10 minutes
|
||||||
cancellation = OptionUtils.Get(options, "cancellation")
|
cancellation = OptionUtils.Get(options, "cancellation")
|
||||||
tryCount = OptionUtils.GetOrDefault(options, "tryCount", 2)
|
tryCount = OptionUtils.GetOrDefault(options, "tryCount", 2)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user