unix - PHP garbage collector cronjob to run every 3 hours -


php sessions stored in files. php.ini configured consider garbage sessions "are older" (have not been modified) in last 3 hours. there cronjob in /etc/cron.d/php5 deletes sessions. configured run every 30 min , change every hour. how can modify it? crontab -l command not listing cronjob. why? thanks

well, it's not in crontab, it's in /etc/cron.d/php5 file. have there. guess system:

09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete 

just modify times run every hour instead:

9 * * * * <<the rest here>> 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -