diff options
author | default <nobody@localhost> | 2023-01-04 09:41:02 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-01-04 09:41:02 +0100 |
commit | 47e6e4732334174c5d73c337f9f9b6194c4e5607 (patch) | |
tree | 000984312b6bddd5ad8abccc26ebf00741dab8b0 /data.c | |
parent | 845df51686c863aaef73f8603cdaf0f9c61079cb (diff) |
The purge ttl for stray global objects have been shortened.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1483,12 +1483,11 @@ static void _purge_subdir(snac *snac, const char *subdir, int days) void purge_server(void) /* purge global server data */ { - int tpd = xs_number_get(xs_dict_get(srv_config, "timeline_purge_days")); xs *spec = xs_fmt("%s/object/??", srv_basedir); xs *dirs = xs_glob(spec, 0, 0); char *p, *v; - time_t mt = time(NULL) - tpd * 24 * 3600; + time_t mt = time(NULL) - 7 * 24 * 3600; p = dirs; while (xs_list_iter(&p, &v)) { |