mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-06-29 10:28:24 +00:00
feat(dev): add option to disable video cache on the database (for development purposes only)
This commit is contained in:
parent
b3e24c703d
commit
9f475c1f2a
@ -219,6 +219,8 @@ class Config
|
||||
|
||||
property tokens_server : String = ""
|
||||
|
||||
property video_cache : Bool = true
|
||||
|
||||
{% if flag?(:linux) %}
|
||||
property reload_config_automatically : Bool = true
|
||||
{% end %}
|
||||
|
@ -60,7 +60,7 @@ module Invidious::Database::Videos
|
||||
extend self
|
||||
|
||||
def insert(video : Video)
|
||||
DBCache.set(video: video, expire_time: 14400)
|
||||
DBCache.set(video: video, expire_time: 14400) if CONFIG.video_cache
|
||||
end
|
||||
|
||||
def delete(id)
|
||||
|
Loading…
Reference in New Issue
Block a user