Does lemmy clear out pictrs cache regularly on a schedule?

As it is currently, the storage space on server can quickly fill up if cached images are not cleaned regularly.
I’ve tried to find if lemmy runs any kind of schedule for this, but doesn’t seem like it from the code:
github.com/LemmyNet/lemmy/…/scheduled_tasks.rs

meldrik ,
@meldrik@lemmy.wtf avatar

I have about 20GB of cached images on my instance… Wish there was an easy way to delete it.

voidx OP ,

Yeah. I guess we could fetch all image ids from the database excluding those uploaded to our local instance, and loop them through the DELETE /image/delete/{delete_token}/{file} API. But I’ve no idea how to get the delete_token, seems like it’s available only during image upload.

user ,

oof checked mine 2gb omg!

voidx OP ,

Doesn’t look like there’s a way to clean it manually right now, so buckle up!

user ,

haha. I went to settings on my android and cleared up all my cache 😁

voidx OP ,

I was talking about the storage space on server, not on the user side! Sorry if I wasn’t clear.

user ,

ah k. 👍

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • wartaberita
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • Testmaggi
  • Socialism
  • feritale
  • oklahoma
  • SuperSentai
  • KamenRider
  • All magazines