Malfunction in the php cleansessions script

Hello Guys, you should take a look at the cleansessions script
/usr/local/CyberCP/bin/cleansessions this script is intending to delete files older than 120 minutes . However the used parameter cmin 120 is looking for exactly 120 minutes age files. I had this problem a few minutes ago where the server inodes was near the limit. It looks like prestashop apps consume too many phpsessions, i don´t know.
Anywhay, after understand what was going on I remembered CP has a script to deal with phpsessions. After I have ran the script with no success I started tests to understand why it was not working. a manual find -type f -cmin 120 returned nothing but a find -type f -cmin +120 returned everything. After this change I was able to delete de files.

1 Like

Let me check this in detials