|
|
|
@ -265,7 +265,9 @@ try {
@@ -265,7 +265,9 @@ try {
|
|
|
|
|
// Skip image processing non 200 code |
|
|
|
|
if (200 != $curl->getCode()) { |
|
|
|
|
|
|
|
|
|
$hostImagesBanned += $db->updateHostImageTimeBanned($queueHostImage->hostImageId, time()); |
|
|
|
|
$db->updateHostImageHttpCode($queueHostImage->hostImageId, $curl->getCode(), time()); |
|
|
|
|
|
|
|
|
|
$hostImagesBanned += $db->updateHostImageTimeBanned($queueHostImage->hostImageId, $curl->getCode(), time()); |
|
|
|
|
|
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
@ -291,6 +293,8 @@ try {
@@ -291,6 +293,8 @@ try {
|
|
|
|
|
|
|
|
|
|
if ($hostImageBanned) { |
|
|
|
|
|
|
|
|
|
$db->updateHostImageMime($queueHostImage->hostImageId, $hostImageContentType, time()); |
|
|
|
|
|
|
|
|
|
$hostImagesBanned += $db->updateHostImageTimeBanned($queueHostImage->hostImageId, time()); |
|
|
|
|
|
|
|
|
|
continue; |
|
|
|
@ -355,6 +359,8 @@ try {
@@ -355,6 +359,8 @@ try {
|
|
|
|
|
// Skip page processing non 200 code |
|
|
|
|
if (200 != $curl->getCode()) { |
|
|
|
|
|
|
|
|
|
$db->updateHostPageHttpCode($queueHostPage->hostPageId, $curl->getCode(), time()); |
|
|
|
|
|
|
|
|
|
$hostPagesBanned += $db->updateHostPageTimeBanned($queueHostPage->hostPageId, time()); |
|
|
|
|
|
|
|
|
|
continue; |
|
|
|
@ -381,6 +387,8 @@ try {
@@ -381,6 +387,8 @@ try {
|
|
|
|
|
|
|
|
|
|
if ($hostPageBanned) { |
|
|
|
|
|
|
|
|
|
$db->updateHostPageMime($queueHostPage->hostPageId, $contentType, time()); |
|
|
|
|
|
|
|
|
|
$hostPagesBanned += $db->updateHostPageTimeBanned($queueHostPage->hostPageId, time()); |
|
|
|
|
|
|
|
|
|
continue; |
|
|
|
|