]> dev.renevier.net Git - syj.git/commitdiff
clear lighttpd compress cache in cron
authorarno <arno@renevier.net>
Wed, 29 Sep 2010 17:58:27 +0000 (19:58 +0200)
committerarno <arno@renevier.net>
Wed, 29 Sep 2010 17:58:27 +0000 (19:58 +0200)
scripts/crontab.syj

index 0360fd4a75f2deafb6f2f9829bff6310a86f0990..0513a3055ed32739c440b27c101d24bc72d29f51 100644 (file)
@@ -9,3 +9,5 @@ MAILTO=arno@renevier.net
 48 4 * * * psql syj syj -c "VACUUM ANALYZE users" > /dev/null
 48 4 * * * psql syj syj -c "VACUUM ANALYZE paths" > /dev/null
 48 4 * * * psql syj syj -c "VACUUM ANALYZE pending_actions" > /dev/null
+# every day, clear lighttpd compress cache
+12 5 * * * find /data/work/syj/lighttpd/lighttpd-cache -type f -mtime +2 | xargs -r rm