mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-09-11 13:51:49 +00:00
move clean/crawl commans to the crontab options
This commit is contained in:
parent
1dbb9f0366
commit
9f23a0ebe4
@ -223,8 +223,9 @@ GET m=SphinxQL
|
|||||||
##### CLI
|
##### CLI
|
||||||
|
|
||||||
* [x] help
|
* [x] help
|
||||||
* [x] crawl
|
* [x] crontab
|
||||||
* [x] clean
|
* [x] crawl
|
||||||
|
* [x] clean
|
||||||
* [x] hostPageSnap
|
* [x] hostPageSnap
|
||||||
+ [x] repair
|
+ [x] repair
|
||||||
+ [x] _sync DB-FS relations_
|
+ [x] _sync DB-FS relations_
|
||||||
|
16
cli/yggo.php
16
cli/yggo.php
@ -54,6 +54,14 @@ if (empty($argv[1])) $argv[1] = 'help';
|
|||||||
|
|
||||||
switch ($argv[1]) {
|
switch ($argv[1]) {
|
||||||
|
|
||||||
|
case 'crontab':
|
||||||
|
|
||||||
|
if (empty($argv[2])) {
|
||||||
|
|
||||||
|
CLI::danger(_('crontab method requires action argument'));
|
||||||
|
|
||||||
|
switch ($argv[2]) {
|
||||||
|
|
||||||
case 'crawl':
|
case 'crawl':
|
||||||
|
|
||||||
CLI::notice(_('crawler queue step begin...'));
|
CLI::notice(_('crawler queue step begin...'));
|
||||||
@ -62,6 +70,7 @@ switch ($argv[1]) {
|
|||||||
|
|
||||||
CLI::notice(_('crawler queue step begin...'));
|
CLI::notice(_('crawler queue step begin...'));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'clean':
|
case 'clean':
|
||||||
|
|
||||||
CLI::notice(_('cleaner queue step begin...'));
|
CLI::notice(_('cleaner queue step begin...'));
|
||||||
@ -71,6 +80,10 @@ switch ($argv[1]) {
|
|||||||
CLI::notice(_('cleaner queue step completed.'));
|
CLI::notice(_('cleaner queue step completed.'));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
case 'hostPageSnap':
|
case 'hostPageSnap':
|
||||||
|
|
||||||
if (empty($argv[2])) {
|
if (empty($argv[2])) {
|
||||||
@ -423,8 +436,7 @@ CLI::break();
|
|||||||
CLI::default('available options:');
|
CLI::default('available options:');
|
||||||
|
|
||||||
CLI::default(' help - this message');
|
CLI::default(' help - this message');
|
||||||
CLI::default(' crawl - execute crawler step in the crontab queue');
|
CLI::default(' crontab [crawl|clean] - execute crontab script queue');
|
||||||
CLI::default(' clean - execute cleaner step in the crontab queue');
|
|
||||||
CLI::default(' hostPage rank reindex - generate rank indexes in hostPage table');
|
CLI::default(' hostPage rank reindex - generate rank indexes in hostPage table');
|
||||||
CLI::default(' hostPageSnap repair - sync DB/FS relations');
|
CLI::default(' hostPageSnap repair - sync DB/FS relations');
|
||||||
CLI::default(' hostPageDom generate [selectors] - make hostPageDom index based on related hostPage.data field');
|
CLI::default(' hostPageDom generate [selectors] - make hostPageDom index based on related hostPage.data field');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user