HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
819 stars 123 forks source link

Retention policy feature #145

Open dsvi opened 1 year ago

dsvi commented 1 year ago

Hi!

Is somebody interested to add retention policy, so that files which weren't requested for a given time, get deleted? Or is it easy to do using simple script, checking aTime?

geek-at commented 1 year ago

Very interesting thought. I thought about this before but always feared that it would delete files that are cached in a reverse proxy (like cloudflare) so the server doesn't know the file was requested recently.

But as an optional feature I'd think it'd be a good addition