I was getting close to hitting the end of my free object storage so there was time pressure involved haha.

Seems to work but I haven’t tested it too much. Currently running on my instance.

  • Morethanevil@lmy.mymte.de
    link
    fedilink
    arrow-up
    18
    ·
    1 year ago

    An option to set a cache limit would be nice. Caching is okay, as long as you can clear the cache. Something like Mastodon caching. You can prune all remote media via tootctl

    Turning completly off will increase the traffic of all other instances -> longer loading times 🤔

    • nick@campfyre.nickwebster.devOP
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      100% agreed. I don’t have the time to make a change that complex right now, so I did a fairly blunt approach with the hope that larger instances will keep caching on to reduce load.

  • pokemaster787@ani.social
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    Interesting, I know personally one of my concerns with self-hosting an individual Lemmy instance (after losing my first account to the Vlemmy.net shutdown) was the threat of being held legally responsible for things cached on the server. Say someone uploads something illegal and my server caches it. Seeing it as an option to turn that off is nice, and for an instance only meant to be used by one person I’d imagine caching won’t have a huge impact on load times

  • 𝙣𝙪𝙠𝙚@yah.lol
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 year ago

    Great work!

    This got me thinking, does Lemmy clear orphan pictrs files? Say a user uploads an image but never submits the comment/post? That file is still on your pictrs and publicly linkable. And what if the post or comment is removed by moderator or deleted by the author? Is Lemmy cleaning these up?

    • nick@campfyre.nickwebster.devOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I don’t think anything in lemmy is currently clearing that. There are community scripts around that do some clearing but I have not tried them.

    • nick@campfyre.nickwebster.devOP
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      Yep! There’s a pretty rapid growth of pictrs data that’s never going to go away from all the images being cached for thumbnails on my instance.

      It’s starting to get to ~1GB per week at this point.

      • Nerd02@lemmy.basedcount.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Holy shit, alright, I think I might be interested in this. I also have a growing storage problem that would need to solve. How does a patched instance look? Do you still see thumbnails? Can you share a screenshot?

  • gnzl@nc.gnzl.cl
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I set this up on my instance about a week ago and it works perfectly, thank you!