Browse Source

Writing lastrun to config-table

main
Jeroen De Meerleer 3 years ago
parent
commit
0b2fc2c1ae
  1. 3
      include/functions.php

3
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()));
}
Loading…
Cancel
Save