From 54149a605c890560d94f00c472f63c0099d2f7b6 Mon Sep 17 00:00:00 2001 From: spl0k Date: Sat, 9 Feb 2019 16:09:38 +0100 Subject: [PATCH] Update docs about caching --- docs/configuration.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 01cf669..2cd13de 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -76,7 +76,13 @@ scanner_extensions = mp3 ogg ## `[webapp]` section `cache_dir`: directory used to store generated files, such as resized cover -arts. Defaults to `/tmp/supysonic`. +art or transcoded files. Defaults to `/tmp/supysonic`. + +`cache_size`: maximum size (in megabytes) of the cache (except for trancodes). +Defaults to 512 MB + +`transcode_cache_size`: maximum size (in megabytes) of the transcode cache. +Defaults to 1024 MB (1 GB) `log_file`: rotating file where some events generated by the web server are logged. Leave empty to disable logging. @@ -98,6 +104,12 @@ transcoding format. Defaults to `on`. ; Optional cache directory. Default: /tmp/supysonic cache_dir = /var/supysonic/cache +; Main cache max size in MB. Default: 512 +cache_size = 512 + +; Transcode cache max size in MB. Default: 1024 (1GB) +transcode_cache_size = 1024 + ; Optional rotating log file. Default: none log_file = /var/supysonic/supysonic.log