Mastodon admins: Leave the βcontent cache retention periodβ blank!

If youβre the admin of a Mastodon server, you might have noticed a server setting called βcontent cache retention periodβ. Do NOT put any numbers in this, just leave it blank!
What happens if I put numbers in there?
It will start permanently breaking threads on your server that are older than that number of days, without any possibility of restoring them. This setting is not really a cache, because thereβs no way of getting the content back later.
Whaaat? Why does this setting even exist?
Apparently it was only intended for announcement servers which wanted to avoid data retention for legal reasons. It isnβt intended by the developers for use on ordinary servers.
So why is such a dangerous and niche setting included on normal servers if itβs not intended for normal servers?
Really good question, it probably shouldnβt be there as most admins will never need it and wonβt realise the damage it causes. There is a pull request on Github to move it into a separate βdanger zoneβ section β§, which includes technical discussion of the situation.
What about the other settings on the same page, can I use them?
Yes, the other settings are okay to use. Itβs just the βcontent cache retention periodβ one that needs to stay blank.
Can I set the βMedia cache retention periodβ? Can I set the βUser archive retention periodβ?
Yes, itβs fine to set time limits on the media cache and user archives, because they can be reloaded if needed. Itβs only the βcontent cacheβ that you need to avoid, because the content it deletes cannot be reloaded.
Back to the front page