Delete site temporary files older than 1 day


/ Published in: Bash
Save to your folder(s)

Change path to your site temporary files dir (there are many files like sess_*) and add it at daily crontab


Copy this code and paste it in your HTML
  1. find /var/www/USERNAME/data/mod-tmp ! -newermt '1 day ago' -exec rm {} \;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.