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.

  • a253040@midwest.social
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 year ago

    IIRC, I’ve read comments elsewhere that pictrs caches for 6 months, but I can’t independently verify. I hope this gets a broader answer because I’m still on the fence about getting an instance set up for myself and some small communities.

    • rs5th@lemmy.scottlabs.io
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 year ago

      I believe the activity table in Postgres is retained for 6 months (although I’m purging mine daily) and the pict-rs cache is 168 hours (1 week).

        • Jamie@jamie.moe
          link
          fedilink
          English
          arrow-up
          9
          ·
          1 year ago

          I was starting to sweat a little because my instance, that only I use, already has 600MB of pictures after less than 24 hours. The server has more than enough space, but I still wouldn’t like it. A week is far more swallow-able.

      • a253040@midwest.social
        link
        fedilink
        English
        arrow-up
        10
        ·
        1 year ago

        I knew I read something was kept for 6 months ;)

        Glad to see that even here, the best way to get the right answer on the internet is to provide a wrong one.

    • nii236@lemmy.jtmn.dev
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      Related note, pictrs is super cool. Its like an OSS imgur backend, but no one really talks much about it or its potential.

    • nephs@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      It would probably be worth it to have that period be configurable by instance admins…

      • rs5th@lemmy.scottlabs.io
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        I think it’s configurable inside pict-rs’s configuration file. I haven’t messed with it though. I’m also not sure if pict-rs has an API that lemmy can use to configure that.