From 4dc0547dc0e80a4289f46cd8ee5b3aaf855f1f1e Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:35:11 +0100 Subject: [feature] Customizable media cleaner schedule (#2304) --- testrig/config.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testrig/config.go') diff --git a/testrig/config.go b/testrig/config.go index 154e61f47..0a322484c 100644 --- a/testrig/config.go +++ b/testrig/config.go @@ -80,8 +80,10 @@ var testDefaults = config.Configuration{ MediaDescriptionMinChars: 0, MediaDescriptionMaxChars: 500, MediaRemoteCacheDays: 7, - MediaEmojiLocalMaxSize: 51200, // 50kb - MediaEmojiRemoteMaxSize: 102400, // 100kb + MediaEmojiLocalMaxSize: 51200, // 50kb + MediaEmojiRemoteMaxSize: 102400, // 100kb + MediaCleanupFrom: "00:00", // midnight. + MediaCleanupEvery: 24 * time.Hour, // 1/day. // the testrig only uses in-memory storage, so we can // safely set this value to 'test' to avoid running storage -- cgit v1.2.3