Skip to content

Invidious is an alternative front-end to YouTube

Decrease channel refresh frequency (1 min -> 1 h)

Samantaz Fox9ba3e1cdb45c
diff --git a/src/invidious/jobs/refresh_channels_job.cr b/src/invidious/jobs/refresh_channels_job.cr
index fbe6d381..0adb4b5a 100644
--- a/src/invidious/jobs/refresh_channels_job.cr
+++ b/src/invidious/jobs/refresh_channels_job.cr
@@ -58,8 +58,9 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
end
end
- LOGGER.debug("RefreshChannelsJob: Done, sleeping for one minute")
- sleep 1.minute
+ # TODO: make this configurable
+ LOGGER.debug("RefreshChannelsJob: Done, sleeping for one hour")
+ sleep 1.hour
Fiber.yield
end
end