From da8282081c8d5f689281f223e824224ccf606511 Mon Sep 17 00:00:00 2001 From: Daenney Date: Fri, 21 Jul 2023 16:22:59 +0200 Subject: [feature] Lower remote media cache config duration (#2007) The old default of 30d can lead to a lot of media getting cached and significant disk usage, even on small or single person instances. A lot of deployments decrease this value, to 15 or even less. This is less of an issue when using object storage, but for local storage which is the more popular deployment option running out of disk space is unpleasant. With GoToSocial's aim to fit in small places, this changes the default to a much more conservative 7 days. In all likelihood people aren't scrolling that far back in their timeline so this change shouldn't result in any issue. Existing deployments will only be affected by this change if the admin hasn't already configured this value, or didn't bootstrap from the example configuration. --- internal/config/defaults.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/config/defaults.go') diff --git a/internal/config/defaults.go b/internal/config/defaults.go index dc076bdc7..e3f53adaf 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -71,7 +71,7 @@ var Defaults = Configuration{ MediaVideoMaxSize: 40 * bytesize.MiB, MediaDescriptionMinChars: 0, MediaDescriptionMaxChars: 500, - MediaRemoteCacheDays: 30, + MediaRemoteCacheDays: 7, MediaEmojiLocalMaxSize: 50 * bytesize.KiB, MediaEmojiRemoteMaxSize: 100 * bytesize.KiB, -- cgit v1.2.3