cron
拡張子 .php のキャッシュは中途半端に削除されるとエラーになる可能性が高いので除外する。 *.cache のファイルだけ削除するのが無難。 0 4 * * * find DIR/cache -name "*.cache" -mtime +7 -type f -print0 | xargs -0 rm -f
拡張子 .php のキャッシュは中途半端に削除されるとエラーになる可能性が高いので除外する。 *.cache のファイルだけ削除するのが無難。 0 4 * * * find DIR/cache -name "*.cache" -mtime +7 -type f -print0 | xargs -0 rm -f