summaryrefslogtreecommitdiff
path: root/includes/comment.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/comment.inc')
-rw-r--r--includes/comment.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/comment.inc b/includes/comment.inc
index d5ccda112..428245a02 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -126,6 +126,9 @@ function comment_post($edit) {
// add comment to database:
db_query("INSERT INTO comments (lid, pid, author, subject, comment, hostname, timestamp, score) VALUES ('". check_input($edit[id]) ."', '". check_input($edit[pid]) ."', '$user->id', '". check_input($edit[subject]) ."', '". check_input($edit[comment]) ."', '". getenv("REMOTE_ADDR") ."', '". time() ."', '". ($user->userid ? 1 : 0) ."')");
+
+ // clear cache:
+ cache_clear();
}
}
}