diff --git a/README.md b/README.md index 0db5d23..5bbb36d 100644 --- a/README.md +++ b/README.md @@ -189,7 +189,7 @@ GET m=SphinxQL * [x] MIME Content-type settings * [x] Ban non-condition links to prevent extra requests * [x] Debug log -* [ ] Indexing new sites homepage in higher priority +* [x] Index homepages and shorter URL with higher priority * [ ] Redirect codes extended processing * [ ] Palette image index / filter * [ ] Crawl queue balancer, that depends of CPU available diff --git a/library/mysql.php b/library/mysql.php index 0370c5c..d7af760 100644 --- a/library/mysql.php +++ b/library/mysql.php @@ -607,7 +607,7 @@ class MySQL { WHERE (`hostPage`.`timeUpdated` IS NULL OR `hostPage`.`timeUpdated` < ? ) AND `host`.`status` <> 0 AND `hostPage`.`timeBanned` IS NULL - ORDER BY RAND() + ORDER BY LENGTH(`hostPage`.`uri`) ASC, RAND() LIMIT ' . (int) $limit);