mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
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:
parent
ec9f1563f9
commit
4392858662
16 changed files with 43 additions and 70 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue