diff --git a/add b/add index 0ec4325..cfc90ea 100755 --- a/add +++ b/add @@ -83,9 +83,3 @@ done echo ${POST["innovator"]} > .innovator rrdtool update "$rrdfile" -t $template "$data" - -if [ -n "$CACHE_DIR" ] -then - find "$CACHE_DIR" -type f -delete - echo $'\nCache cleared!' -fi diff --git a/import b/import index ed44bb2..ebbb93e 100755 --- a/import +++ b/import @@ -81,12 +81,6 @@ then data=$(date -d "$date $hour" +%s):${data// /:} rrdtool update "$rrdfile" -t $template "${data//:0/:U}" 2>&1 done <<<"${POST["data"]}" - - if [ -n "$CACHE_DIR" ] - then - find "$CACHE_DIR" -type f -delete - echo $'\nCache cleared!' - fi else send_headers <<-EOHead content-type: text/xml