CaramelFur / Picsur

An easy to use, selfhostable image sharing service like Imgur with built in converting
https://picsur.org/
GNU Affero General Public License v3.0
802 stars 42 forks source link

Cached Image expiry time #14

Closed karmarcharger closed 1 year ago

karmarcharger commented 1 year ago

image Does this setting means that the images uploaded will vanish eventually? what are the variables that can be used in this? how to make the image uploaded not vanish at all?

CaramelFur commented 1 year ago

This setting only governs the expiry time of transcoded images. For example when you request a webp variant of an image, it will convert this image to webp and cache the result. This settings makes it such that this cached result will be deleted after 7 days. Making this shorter saves on disk space, but will cost more processing power. And making it longer will do the inverse.

Valid values are Years, Year, Yrs, Yr, Y, Weeks, Week, W, Days, Day, D, Hours, Hour, Hrs, Hr, H, Minutes, Minute, Mins, Min, M, Seconds, Second, Secs, Sec, s, Milliseconds, Millisecond, Msecs, Msec, Ms. But the default value of 7 days is sufficient for most purposes.

On a sidenote: It is possible to make images expire after a certain time period, but this setting is configured for each invidual image from the image view screen. By default images never expire.