diff options
| author | 2022-11-25 17:42:01 +0100 | |
|---|---|---|
| committer | 2022-11-25 17:42:01 +0100 | |
| commit | e93a79e06d12d5fa3a4bcac313a01044f0da7a25 (patch) | |
| tree | 35ea6d84ed584528a0b5b9b31beb5d41ca9b804a /data.c | |
| parent | Do hard links to objects in each user's public and private caches. (diff) | |
| download | snac2-e93a79e06d12d5fa3a4bcac313a01044f0da7a25.tar.gz snac2-e93a79e06d12d5fa3a4bcac313a01044f0da7a25.tar.xz snac2-e93a79e06d12d5fa3a4bcac313a01044f0da7a25.zip | |
Also purge the public/ and private/ caches.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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 | ||