Email or username:

Password:

Forgot your password?
Fedi.Tips

⚠️ Mastodon admins!

There's a setting called "content cache retention period" that you should leave blank. If you put any numbers in there, it can start permanently breaking threads on your server.

This feature is NOT intended for general use on normal servers.

Thread all about it here:

➡️ social.growyourown.services/@h

There's a pull request on Github for moving this to a "danger zone":

➡️ github.com/mastodon/mastodon/p

Added a page to fedi.tips:

➡️ fedi.tips/mastodon-admins-leav

#FediAdmin #MastoAdmin

24 comments
yianiris

Can you build mastodon disabling this option all together, or till upstream changes it?

@FediTips

Fedi.Tips

@yianiris

If you leave it blank it will disable the option.

James Wu

@FediTips @yianiris I think they meant one meta level up, i.e. disable the existence of this input box which are not meant for general servers

Fedi.Tips

@analogist @yianiris

I guess you could remove it if you have the coding knowledge?

I'm not sure why it is there at all to be honest, as it's dangerous and 99.99% of servers will never need it.

yianiris

I took a look at a tarball and the git (near 1GB), I didn't readily see traditional configuration options, but I am not very familiar with rubi and rust.

@FediTips @analogist

Troy

@FediTips I dunno id rather not cache stuff forever. Perhaps the real solution is to treat it like a cache correctly - that is to re fetch the data if it’s needed at a later point. If the data isn’t accessed for a month why waste the space?

Michael Stanclift

@troy @FediTips there are tootctl commands that can be run to cleanup the database in a way that isn't disruptive to user interactions.

Fedi.Tips

@troy

This particular setting isn't intended for controlling how long you cache stuff on an ordinary server. Please see the links for technical details of what it actually is.

You can use the other settings on the same page for controlling your cache. The media cache setting would be especially useful for reducing storage.

Troy

@FediTips thanks for trying to tell me what it does but I am fully aware of what it does, how it works and the side effects.

Fedi.Tips

@troy

My understanding is that this setting isn't really a cache because the data can't be fetched later. That's why the pull request includes renaming it.

yianiris

If a server only use a short cache and remove old content then what people contribute in public is trashed. That would be a good reason to not participate. Waste of time.

Otherwise we can publish material in pastebin.com

@troy @FediTips

Troed Sångberg

@FediTips Thanks - seems I have had that set to 7 days for some reason. Blanked it out now.

Roni Laukkarinen

@troed @FediTips Oof. All the replies to your posts have been deleted after 7 days. I too had this setting on for like a year, for 90 days the posts were intact, older than that had 0 replies. Hundreds of replies gone. Poof. Forever.

mementomori.social/@rolle/1106

#MastoAdmin

Fedi.Tips

@rolle @troed

Mastodon's devs really should have hidden this option. It just causes damage in almost all cases.

Jippi 🇩🇰

@FediTips @rolle @troed calling it a Cache is also straight up wrong - a cache can always be rebuilt - it’s just there to make things faster. That’s definitely what is going on here though

Michael Stanclift

@jippi @FediTips @rolle @troed 🤞 the PR to help explain it better can get merged soon.

Michael Stanclift

@FediTips thanks for highlighting this (and the PR)

Adam Dalliance

@FediTips Can confirm. I screwed up and broke loads of threads on this server for a month before I reverted to fix it.

Fedi.Tips

@pre

Sorry to hear 😞

Hopefully this option gets a bit more hidden in future, or at least gets a better warning message.

zeitverschreib [friendica]
@FediTips Now I know why bookmarked posts kept disappearing. Thanks.
Go Up