baikal-docker icon indicating copy to clipboard operation
baikal-docker copied to clipboard

PHP Sessions are not cleaned up

Open inqode-lars opened this issue 7 months ago • 1 comments

Hi there,

we are noticing that /var/lib/php/sessions gets spammed with sessions over time. Every few months we have to kill our pod because it taking too much inodes because of too many session files (currently 3226291).

Executing the script from /etc/cron.d/php could clean up the session. Maybe it would be a good idea to add cron to the images and start it using /docker-entrypoint.d/ ?

inqode-lars avatar Jul 26 '24 06:07 inqode-lars