From cd8f31f03a653f632993e19fdfe88a105ccb79c4 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 14 Sep 2018 12:23:22 +0200 Subject: [PATCH] Writing lastrun to config-table --- include/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/functions.php b/include/functions.php index 4a6819f..084c998 100644 --- a/include/functions.php +++ b/include/functions.php @@ -99,4 +99,7 @@ function clean_database() { $stmt = $db->prepare("DELETE FROM runs WHERE timestamp < ?"); $stmt->execute(array($oldestrun)); + + $stmt = $db->prepare("UPDATE config SET value = ? WHERE conf = ?"); + $stmt->execute(array('dbclean.lastrun', $time())); } \ No newline at end of file