I’m self-hosting the docker containers and I noticed the pictrs directory is steadily growing because of the cached images. Does anyone know if it gets cleaned up automatically or are hosters running scripts to clean it up after a certain amount of time? The install guides make no mention of it from what I can find.

  • idle@158436977.xyzOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    When I look in the directories, it’s 100s of images that are definitely from posts. Maybe it only caches the images I clicked on?

    • poVoq@slrpnk.net
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      1 year ago

      No, I was wrong and caching is happeing somehow, but not always. I think there might be a strict time-out or something like that for pict-rs trying to cache the images, which is why most images do not get cached in my experience.

      • idle@158436977.xyzOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        In any case, a weeks retention is fine by me. I have a couple hundred gigs available, so long as it’s getting cleaned up at some point it’s not a problem for me.