mirror of
https://github.com/iv-org/invidious
synced 2024-11-09 01:10:27 +00:00
Bump time for get_channel refresh
This commit is contained in:
parent
e2b5b7793a
commit
cc6d322b0c
@ -512,7 +512,7 @@ def get_channel(id, client, db)
|
|||||||
if db.query_one?("SELECT EXISTS (SELECT true FROM channels WHERE id = $1)", id, as: Bool)
|
if db.query_one?("SELECT EXISTS (SELECT true FROM channels WHERE id = $1)", id, as: Bool)
|
||||||
channel = db.query_one("SELECT * FROM channels WHERE id = $1", id, as: InvidiousChannel)
|
channel = db.query_one("SELECT * FROM channels WHERE id = $1", id, as: InvidiousChannel)
|
||||||
|
|
||||||
if Time.now - channel.updated > 1.minutes
|
if Time.now - channel.updated > 10.minutes
|
||||||
channel = fetch_channel(id, client, db)
|
channel = fetch_channel(id, client, db)
|
||||||
channel_array = channel.to_a
|
channel_array = channel.to_a
|
||||||
args = arg_array(channel_array)
|
args = arg_array(channel_array)
|
||||||
|
Loading…
Reference in New Issue
Block a user