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.

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 years ago

    Remote images are not cached or proxied right now as far as I know. Edit: seems I was wrong and there is some image caching happening. For sure for the small image thumbnails, but also sometimes for other pictures, but it seems very inconsistent.

    Your growning pictrs directory might be also due to the extremely verbose default logging that Pictrs (and the Lemmy backend too btw) uses.

    • idle@158436977.xyzOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years 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
        ·
        2 years 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
          ·
          2 years 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.