snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit aab32743c150a62648cd620da05d4388747c6253
parent 131fbc105a9b82988869fe84c03f2e0b0135e168
Author: default <nobody@localhost>
Date:   Fri, 10 Jan 2025 06:47:58 +0100

Actor caching lowered to 3 hours.

Diffstat:
Mactivitypub.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/activitypub.c b/activitypub.c @@ -1199,7 +1199,7 @@ xs_dict *msg_actor(snac *snac) int n; /* everybody loves some caching */ - if (time(NULL) - object_mtime(snac->actor) < 6 * 3600 && + if (time(NULL) - object_mtime(snac->actor) < 3 * 3600 && valid_status(object_get(snac->actor, &msg))) { snac_debug(snac, 2, xs_fmt("Returning cached actor %s", snac->actor));