diff options
author | Mario <mario@mariovavti.com> | 2024-01-27 16:36:26 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-27 16:36:26 +0000 |
commit | 5e780ba089aa8493eb5bec30558345b070ef808c (patch) | |
tree | b206fac1263c23fccf6311056f88763f5dc6aed7 /Zotlabs/Daemon | |
parent | c0a7dfe2f6554fc66e753c456551dd580c479820 (diff) | |
download | volse-hubzilla-5e780ba089aa8493eb5bec30558345b070ef808c.tar.gz volse-hubzilla-5e780ba089aa8493eb5bec30558345b070ef808c.tar.bz2 volse-hubzilla-5e780ba089aa8493eb5bec30558345b070ef808c.zip |
implement short time object cache to reduce network calls and some cleanup
Diffstat (limited to 'Zotlabs/Daemon')
-rw-r--r-- | Zotlabs/Daemon/Fetchparents.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Fetchparents.php b/Zotlabs/Daemon/Fetchparents.php index 4daf8c019..b00acdfbf 100644 --- a/Zotlabs/Daemon/Fetchparents.php +++ b/Zotlabs/Daemon/Fetchparents.php @@ -14,8 +14,8 @@ class Fetchparents { return; } - $channel = channelx_by_n(intval($argv[1])); - if (!$channel) { + $channels = explode(',', $argv[1]); + if (!$channels) { return; } @@ -31,7 +31,10 @@ class Fetchparents { $force = $argv[4] ?? false; - Activity::fetch_and_store_parents($channel, $observer_hash, $mid, null, $force); + foreach ($channels as $channel_id) { + $channel = channelx_by_n($channel_id); + Activity::fetch_and_store_parents($channel, $observer_hash, $mid, null, $force); + } return; |