mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:10:11 +00:00
Performance improvements when storing items (via API)
This commit is contained in:
parent
8f6e9fa65e
commit
e6148f4c1c
6 changed files with 102 additions and 49 deletions
|
@ -707,11 +707,6 @@ class Photo {
|
|||
);
|
||||
}
|
||||
|
||||
// Update the cached values
|
||||
if ($album != 'Contact Photos') {
|
||||
photo_albums($uid, true);
|
||||
}
|
||||
|
||||
return $r;
|
||||
}
|
||||
}
|
||||
|
@ -872,7 +867,7 @@ function get_photo_info($url) {
|
|||
|
||||
$data = Cache::get($url);
|
||||
|
||||
if (is_null($data) OR !$data) {
|
||||
if (is_null($data) OR !$data OR !is_array($data)) {
|
||||
$img_str = fetch_url($url, true, $redirects, 4);
|
||||
$filesize = strlen($img_str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue