set crawler queue order priority to item rank, rand()

This commit is contained in:
ghost 2023-05-04 06:55:05 +03:00
parent 9ed8411d2f
commit 73f212e3d7

View File

@ -521,7 +521,7 @@ class MySQL {
WHERE (`hostPage`.`timeUpdated` IS NULL OR `hostPage`.`timeUpdated` < ? ) AND `host`.`status` <> 0 WHERE (`hostPage`.`timeUpdated` IS NULL OR `hostPage`.`timeUpdated` < ? ) AND `host`.`status` <> 0
ORDER BY `hostPage`.`hostPageId` ORDER BY `hostPage`.`rank` DESC, RAND()
LIMIT ' . (int) $limit); LIMIT ' . (int) $limit);
@ -553,7 +553,7 @@ class MySQL {
WHERE (`hostImage`.`timeUpdated` IS NULL OR `hostImage`.`timeUpdated` < ? ) AND `host`.`status` <> 0 WHERE (`hostImage`.`timeUpdated` IS NULL OR `hostImage`.`timeUpdated` < ? ) AND `host`.`status` <> 0
ORDER BY `hostImage`.`hostImageId` ORDER BY `hostImage`.`rank` DESC, RAND()
LIMIT ' . (int) $limit); LIMIT ' . (int) $limit);