summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2022-11-25 17:42:01 +0100
committerGravatar default2022-11-25 17:42:01 +0100
commite93a79e06d12d5fa3a4bcac313a01044f0da7a25 (patch)
tree35ea6d84ed584528a0b5b9b31beb5d41ca9b804a
parentDo hard links to objects in each user's public and private caches. (diff)
downloadsnac2-e93a79e06d12d5fa3a4bcac313a01044f0da7a25.tar.gz
snac2-e93a79e06d12d5fa3a4bcac313a01044f0da7a25.tar.xz
snac2-e93a79e06d12d5fa3a4bcac313a01044f0da7a25.zip
Also purge the public/ and private/ caches.
-rw-r--r--data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/data.c b/data.c
index 7f81202..5dd9ec9 100644
--- a/data.c
+++ b/data.c
@@ -1571,9 +1571,11 @@ void purge_user(snac *snac)
1571 days = xs_number_get(xs_dict_get(srv_config, "timeline_purge_days")); 1571 days = xs_number_get(xs_dict_get(srv_config, "timeline_purge_days"));
1572 _purge_subdir(snac, "timeline", days); 1572 _purge_subdir(snac, "timeline", days);
1573 _purge_subdir(snac, "hidden", days); 1573 _purge_subdir(snac, "hidden", days);
1574 _purge_subdir(snac, "private", days);
1574 1575
1575 days = xs_number_get(xs_dict_get(srv_config, "local_purge_days")); 1576 days = xs_number_get(xs_dict_get(srv_config, "local_purge_days"));
1576 _purge_subdir(snac, "local", days); 1577 _purge_subdir(snac, "local", days);
1578 _purge_subdir(snac, "public", days);
1577} 1579}
1578 1580
1579 1581