mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
19 lines
357 B
PHP
19 lines
357 B
PHP
<?php
|
|
|
|
require_once("config.php");
|
|
|
|
use newznab\db\DB;
|
|
|
|
$force = ((isset($argv[1]) && ($argv[1] == "true")));
|
|
|
|
$db = new DB;
|
|
$ret = $db->optimise($force);
|
|
|
|
if (count($ret) > 0)
|
|
{
|
|
echo "Optmze : Optimised ".count($ret)." tables\n";
|
|
}
|
|
else
|
|
{
|
|
echo "Optmze : Nothing required optimisation.".(!$force ? " Try using force (optimise_db.php true)" : "")."\n";
|
|
} |