gonic icon indicating copy to clipboard operation
gonic copied to clipboard

Empty cache folder

Open tordenflesk opened this issue 4 years ago • 6 comments

After 6 months my cache folder has grown to 78GB. Perhaps old transcoded files should be deleted?

tordenflesk avatar Jul 03 '21 18:07 tordenflesk

I'm working on packaging this project for Gentoo. I'm considering adding a default cron job or systemd timer as a stop gap solution to delete old files form the cache until this is implemented in gonic itself.

Would deleting cached files cause problems for gonic or will it simply recreate them as needed?

zpuskas avatar Jun 29 '22 04:06 zpuskas

will it simple recreate them as needed?

:+1: deleting them will be just fine

sentriz avatar Jun 29 '22 10:06 sentriz

For a workaround with Docker, I implement the following solution:

version: "3"
services:
  gonic:
    image: sentriz/gonic:v0.15.2
    command: sh -c "while :; do sleep 3600; find /cache -type f -atime +90 -delete; done & gonic"
...

This approach is significantly simpler than installing cron or other methods that would require modifications to the original docker container.

mazzz1y avatar Jun 19 '23 11:06 mazzz1y