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.

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

    I’m running the following SQL, although I’m not actually sure it’s as necessary since 0.18.3. It doesn’t delete any post history or anything.

    DELETE FROM activity WHERE published < NOW() - INTERVAL '1 day';