aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-04 07:37:49 +0000
committerMario <mario@mariovavti.com>2021-09-04 07:37:49 +0000
commitc47e21f3a74e4290bd206c1f7edb377e809d7e42 (patch)
treecc47327416317f36b1a725f11595e18836907121 /Zotlabs/Lib/Libzot.php
parentd83c013becfb577dca85f18ea7f98da74f79739f (diff)
downloadvolse-hubzilla-c47e21f3a74e4290bd206c1f7edb377e809d7e42.tar.gz
volse-hubzilla-c47e21f3a74e4290bd206c1f7edb377e809d7e42.tar.bz2
volse-hubzilla-c47e21f3a74e4290bd206c1f7edb377e809d7e42.zip
refactor actor_store and actor cache part 1
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index f7d8c417a..cb55a4e67 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -3154,4 +3154,10 @@ class Libzot {
}
+ static function update_cached_hubloc($hubloc) {
+ if ($hubloc['hubloc_updated'] > datetime_convert('UTC','UTC','now - 1 week') || $hubloc['hubloc_url'] === z_root()) {
+ return;
+ }
+ self::refresh( [ 'hubloc_id_url' => $hubloc['hubloc_id_url'] ] );
+ }
}