mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
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:
@@ -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__);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user