aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-05 17:08:13 -0700
committerzotlabs <mike@macgirvin.com>2017-04-05 17:08:13 -0700
commita4685e6df38dd530b348268f383f59a993607cad (patch)
treebacf5d6d3cebe87e16b792576d493eb009d9e80f /include
parenta92256e1cbd0b6bcaac5711c751479b97b30e00e (diff)
downloadvolse-hubzilla-a4685e6df38dd530b348268f383f59a993607cad.tar.gz
volse-hubzilla-a4685e6df38dd530b348268f383f59a993607cad.tar.bz2
volse-hubzilla-a4685e6df38dd530b348268f383f59a993607cad.zip
import_author_xchan - since we rarely refresh zot-info for non-connections, force a cache reload once a week to catch things like profile photo updates and location changes
Diffstat (limited to 'include')
-rw-r--r--include/zot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index 1a4f6534b..8afed1c3c 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3595,7 +3595,7 @@ function import_author_zot($x) {
dbesc($x['guid_sig'])
);
- if($r1 && $r2) {
+ if($r1 && $r2 && $r1[0]['hubloc_updated'] > datetime_convert('UTC','UTC','now - 1 week')) {
logger('in cache', LOGGER_DEBUG);
return $hash;
}