removed config.sh from parsing in all scripts, changed processing the categories to run 0, 1 or 2, by request, changed nzb-import maxthreads to 5, reduces load significantly, with no loss in performance, added some output to truncate/reset scripts

This commit is contained in:
jonnyboy
2013-04-07 12:27:57 -04:00
parent 449974b255
commit 2982e26541
16 changed files with 123 additions and 138 deletions
+9 -3
View File
@@ -4,10 +4,16 @@ require_once(WWW_DIR."/lib/framework/db.php");
$db = new DB;
$rel = $db->query("update groups set backfill_target=0, first_record=0, first_record_postdate=null, last_record=0, last_record_postdate=null, last_updated=null");
$rel = $db->query("truncate table parts");
$rel = $db->query("truncate table partsrepair");
$rel = $db->query("truncate table binaries;");
printf("Reseting all groups completed.\n");
$arr = array("parts", "partrepair", "binaries");
foreach ($arr as &$value) {
$rel = $db->query("truncate table $value");
printf("Truncating $value completed.\n");
}
unset($value);
//get variables from config.sh and defaults.sh
$path = dirname(__FILE__);
+8 -3
View File
@@ -4,8 +4,13 @@ require_once(WWW_DIR."/lib/framework/db.php");
$db = new DB;
$rel = $db->query("truncate table parts");
$rel = $db->query("truncate table partsrepair");
$rel = $db->query("truncate table binaries;");
$arr = array("parts", "partrepair", "binaries");
foreach ($arr as &$value) {
$rel = $db->query("truncate table $value");
printf("Truncating $value completed.\n");
}
unset($value);
?>