|
|
|
@ -272,6 +272,10 @@ try {
@@ -272,6 +272,10 @@ try {
|
|
|
|
|
$logsCrawlerDeleted += $db->deleteLogCrawler(time() - CRAWL_LOG_SECONDS_OFFSET); |
|
|
|
|
|
|
|
|
|
// Delete failed snaps |
|
|
|
|
foreach ($db->getHosts() as $host) { |
|
|
|
|
|
|
|
|
|
foreach ($db->getHostPages($host->hostId) as $hostPage) { |
|
|
|
|
|
|
|
|
|
$snapFilePath = chunk_split($hostPage->hostPageId, 1, '/'); |
|
|
|
|
|
|
|
|
|
foreach ($db->getHostPageSnaps($hostPage->hostPageId, false, false, 'AND') as $hostPageSnap) { |
|
|
|
@ -294,6 +298,8 @@ try {
@@ -294,6 +298,8 @@ try {
|
|
|
|
|
|
|
|
|
|
$hostPagesSnapDeleted += $db->deleteHostPageSnap($hostPageSnap->hostPageSnapId); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Commit results |
|
|
|
|
$db->commit(); |
|
|
|
|