mirror of
https://github.com/friendica/friendica
synced 2025-04-28 22:24:22 +02: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
|
@ -545,7 +545,7 @@ class Transmitter
|
|||
|
||||
$data = ActivityPub\Transmitter::createActivityFromItem($item_id);
|
||||
|
||||
Cache::set($cachekey, $data, CACHE_QUARTER_HOUR);
|
||||
Cache::set($cachekey, $data, Cache::QUARTER_HOUR);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
|
|
@ -3205,7 +3205,7 @@ class Diaspora
|
|||
logger("Send participation for ".$item["guid"]." by ".$author, LOGGER_DEBUG);
|
||||
|
||||
// It doesn't matter what we store, we only want to avoid sending repeated notifications for the same item
|
||||
Cache::set($cachekey, $item["guid"], CACHE_QUARTER_HOUR);
|
||||
Cache::set($cachekey, $item["guid"], Cache::QUARTER_HOUR);
|
||||
|
||||
return self::buildAndTransmit($owner, $contact, "participation", $message);
|
||||
}
|
||||
|
@ -3575,7 +3575,7 @@ class Diaspora
|
|||
|
||||
$msg = ["type" => $type, "message" => $message];
|
||||
|
||||
Cache::set($cachekey, $msg, CACHE_QUARTER_HOUR);
|
||||
Cache::set($cachekey, $msg, Cache::QUARTER_HOUR);
|
||||
|
||||
return $msg;
|
||||
}
|
||||
|
@ -3702,7 +3702,7 @@ class Diaspora
|
|||
$comment['thread_parent_guid'] = self::getGuidFromUri($item['thr-parent'], $item['uid']);
|
||||
}
|
||||
|
||||
Cache::set($cachekey, $comment, CACHE_QUARTER_HOUR);
|
||||
Cache::set($cachekey, $comment, Cache::QUARTER_HOUR);
|
||||
|
||||
return($comment);
|
||||
}
|
||||
|
|
|
@ -2210,7 +2210,7 @@ class OStatus
|
|||
$feeddata = trim($doc->saveXML());
|
||||
|
||||
$msg = ['feed' => $feeddata, 'last_update' => $last_update];
|
||||
Cache::set($cachekey, $msg, CACHE_QUARTER_HOUR);
|
||||
Cache::set($cachekey, $msg, Cache::QUARTER_HOUR);
|
||||
|
||||
logger('Feed duration: ' . number_format(microtime(true) - $stamp, 3) . ' - ' . $owner_nick . ' - ' . $filter . ' - ' . $previous_created, LOGGER_DEBUG);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue