mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-05-13 10:52:12 -04:00
Add --translation-cache
This commit is contained in:
@@ -40,8 +40,9 @@ def on_starting(server):
|
||||
|
||||
args = get_args()
|
||||
|
||||
from libretranslate import flood, scheduler, secret, storage
|
||||
from libretranslate import flood, scheduler, secret, storage, cache
|
||||
storage.setup(args.shared_storage)
|
||||
cache.setup(args.translation_cache)
|
||||
scheduler.setup(args)
|
||||
flood.setup(args)
|
||||
secret.setup(args)
|
||||
Reference in New Issue
Block a user