Browse Source

index homepages and shorter URL with higher priority

main
ghost 2 years ago
parent
commit
f49076bb0c
  1. 2
      README.md
  2. 2
      library/mysql.php

2
README.md

@ -189,7 +189,7 @@ GET m=SphinxQL @@ -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

2
library/mysql.php

@ -607,7 +607,7 @@ class MySQL { @@ -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);

Loading…
Cancel
Save