1

I just noticed that my pictrs image volume reached 20 GBs in size. Does Lemmy or pictrs not delete the cached images automatically after some time?

top 7 comments
sorted by: hot top controversial new old
[-] tyler@programming.dev 0 points 1 week ago

They’re not cached images, they’re stored images in your database. If they deleted after any time then your server wouldn’t function, since any old post you loaded would have the images deleted.

[-] asudox@lemmy.asudox.dev 0 points 1 week ago

I just changed to another distro (so I had to set everything up again) and I simply did not backup the pictrs volume because how much time it would've taken to transfer it from one machine to another. And well, it seems like what you said is not true. I can load any old post and I will still see its images.

[-] nutomic@lemmy.ml 2 points 1 week ago

The proxied images will be refetched from the origin if they cant be found locally. There should also be a configurable maximum size for the image cache but I dont see it mentioned in the pictrs readme. So like Dessalines said you need to ask the developer directly.

[-] bjoern_tantau@swg-empire.de 0 points 1 week ago

Pictures you (or your users. if any) uploaded yourself should be gone, though.

I've turned off proxying myself and purged what I could find from pictrs and it's still taking up way more storage than it should. And it's a messy black box where I have no idea what's really going on. Another reason why I want to switch to Piefed.

[-] dessalines@lemmy.ml 0 points 1 week ago

You're using the ProxyAllImages setting then? Otherwise it is storing every image, and it does not delete them.

[-] asudox@lemmy.asudox.dev 0 points 1 week ago* (last edited 1 week ago)

Yeah I am using the "proxy all images" image mode. Though I still don't get why the images aren't being deleted at some point.

[-] dessalines@lemmy.ml 1 points 1 week ago

It has to be the pictrs cache then... I'd ask this on the pict-rs matrix chat

this post was submitted on 17 Sep 2025
1 points (100.0% liked)

Lemmy Support

4971 readers
14 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 6 years ago
MODERATORS