@Hydrangea
我现在 RAILS_ENV=production bin/tootctl media usage
的结果是
Attachments: 3.83 GB (516 MB local)
Custom emoji: 290 MB (30.1 MB local)
Preview cards: 40.3 MB
Avatars: 1.25 GB (2.03 MB local)
Headers: 2.97 GB (6.58 MB local)
Backups: 12.7 MB
Imports: 0 Bytes
Settings: 133 KB
站点开了 14 个月了,可以看到主要的空间都是外站的缓存,而且好像没有 admin CLI 可以删。站点自己的媒体很少,我本人是站点的主要使用者,有 291.3 MB 的 attachment 是我用的。du -h | sort -h
的话 ~/live
占了 14G,其中 ~/live/public/system/cache
9.5G
tootctl cache clear
+tootctl cache remove
之后:
Attachments: 11 GB (69.1 MB local)
Custom emoji: 69.5 MB (2.98 MB local)
Preview cards: 860 MB
Avatars: 1.95 GB (1010 KB local)
Headers: 4.57 GB (2.48 MB local)
Backups: 0 Bytes
Imports: 0 Bytes
Settings: 531 KB
不知道为什么各方面数据都远比你的要高,尤其是Attachments
和Headers
?
@unagi 我也不明白…………
@Hydrangea header 就是用户上传的 1500x500 的横幅,attachment 应该是用户发状态时上传的媒体文件,你可以去 cache 文件夹确认一下内容?
所以我很奇怪为什么 media remove 没有移除这些…