#!/bin/bash

# 这里面有个坑，缓存不会自动清理，请务必设置计划任务进行定时清理，否则数据就会是老数据，会产生一些莫名其妙的BUG

path='/www/_www/ysgame/tmp/cache/records'

#pushd $path
cd $path

list=$(find DB___*.log -mmin +2 2>/dev/null)

for i in $list
do
  rm $path/$i
done

list=$(find TMP___*.log -mmin +30 2>/dev/null)

for i in $list
do
  rm $path/$i
done

#popd

#rm ${path}/DB___*.log

