Move Global Functions - Part 3

- Replaced every CACHE definition
- Moved check_url to App->checkURL()
- Removed unused definition "ZCURL_TIMEOUT"
This commit is contained in:
Philipp Holzer
2018-10-20 18:19:55 +02:00
parent ec9f1563f9
commit 4392858662
16 changed files with 43 additions and 70 deletions

View File

@@ -87,7 +87,7 @@ class Queue
logger("Check server " . $server . " (" . $contact["network"] . ")");
$vital = PortableContact::checkServer($server, $contact["network"], true);
Cache::set($cachekey_server . $server, $vital, CACHE_MINUTE);
Cache::set($cachekey_server . $server, $vital, Cache::MINUTE);
}
if (!is_null($vital) && !$vital) {
@@ -119,7 +119,7 @@ class Queue
QueueModel::removeItem($q_item['id']);
} else {
QueueModel::updateTime($q_item['id']);
Cache::set($cachekey_deadguy . $contact['notify'], true, CACHE_MINUTE);
Cache::set($cachekey_deadguy . $contact['notify'], true, Cache::MINUTE);
}
break;
@@ -129,7 +129,7 @@ class Queue
if ($deliver_status == -1) {
QueueModel::updateTime($q_item['id']);
Cache::set($cachekey_deadguy . $contact['notify'], true, CACHE_MINUTE);
Cache::set($cachekey_deadguy . $contact['notify'], true, Cache::MINUTE);
} else {
QueueModel::removeItem($q_item['id']);
}
@@ -144,7 +144,7 @@ class Queue
QueueModel::removeItem($q_item['id']);
} else {
QueueModel::updateTime($q_item['id']);
Cache::set($cachekey_deadguy . $contact['notify'], true, CACHE_MINUTE);
Cache::set($cachekey_deadguy . $contact['notify'], true, Cache::MINUTE);
}
break;