aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-05 17:08:13 -0700
committerMario Vavti <mario@mariovavti.com>2017-04-06 20:19:27 +0200
commitb347e1d86148940bc164c4859d3e77ee6f2fb113 (patch)
tree6210a93e3b963ed3e9b1158b5689a5c15351470b
parenta4f6c24273f5ba321b7255ec228f677483fd3fa3 (diff)
downloadvolse-hubzilla-b347e1d86148940bc164c4859d3e77ee6f2fb113.tar.gz
volse-hubzilla-b347e1d86148940bc164c4859d3e77ee6f2fb113.tar.bz2
volse-hubzilla-b347e1d86148940bc164c4859d3e77ee6f2fb113.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
-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;
}