mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-12 15:58:00 +00:00
ban pages only on data type error codes only
This commit is contained in:
parent
62a4f33b53
commit
242e0abd86
@ -808,8 +808,9 @@ try {
|
||||
// Debug std
|
||||
var_dump($e);
|
||||
|
||||
// Ban page that throws the error and stuck the crawl queue
|
||||
if (!empty($queueHostPage->hostPageId)) {
|
||||
// Ban page that throws the data type error and stuck the crawl queue
|
||||
if (!empty($queueHostPage->hostPageId) &&
|
||||
!empty($e->getCode()) && in_array($e->getCode(), [1366])) { // @TODO
|
||||
|
||||
$hostPagesBanned = $db->updateHostPageTimeBanned($queueHostPage->hostPageId, time());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user