I have been trying to understand how the caching of content from other Lemmy instances works. From what I have gathered, the local Lemmy instance will automatically download and store posts made to any communities that are followed by users on the local instance.

To me, this seems somewhat unsustainable in the long term - I am aware of the fact that it’s only storing the text of the posts, and not any media. I’m curious if it’s possible to configure the local instance to only cache the stored data for a certain amount of time (it might be better to just periodically purge the entire cache with a cronjob, or something); however, the data that I would like to store permanently is posts to any other community by users on the local instance, as well as posts made to communities on the instance (I have a suspicion that the communites data is permanently stored by default).

  • lemmy
    link
    fedilink
    English
    21 year ago

    I have just setup an instance of Lemmy on my server. So if I federate to a community, all its posts will be stored on my server, also images and so on?

    • @PriorProject
      link
      English
      41 year ago

      The terminology is that you federate with an instance and subscribe to a community.

      And yes, if you sub a community, your instance will mirror posts and comments to your local DB and re-serve them to the public unauthenticated internet. On a single-user instance, anyone can browse the communities on your server and infer what your account subscribes to, including whatever porn, piracy, and other legally questionable shenanigans based on what gets replicated to your server.

      • lemmy
        link
        fedilink
        English
        11 year ago

        Thank you. What about comments and posts that get updated/changed? Will my instance also reflect those changes?

        • @PriorProject
          link
          English
          11 year ago

          Yeah, they get federated as a new edit message. Not sure whether they get stored in the db as edit entries, or if the DB actually just modifies the original… but edits federate.