diff options
author | Mario <mario@mariovavti.com> | 2024-03-25 16:09:53 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-25 16:09:53 +0000 |
commit | 842df8a7991688ccb0770dcca0119acf728e1c8b (patch) | |
tree | d06f81878fc3752829f85c1ea1262dd7bd92ade7 /include/taxonomy.php | |
parent | 2ff84ab25a98d26d5e6e941fffff28b463ca3335 (diff) | |
download | volse-hubzilla-842df8a7991688ccb0770dcca0119acf728e1c8b.tar.gz volse-hubzilla-842df8a7991688ccb0770dcca0119acf728e1c8b.tar.bz2 volse-hubzilla-842df8a7991688ccb0770dcca0119acf728e1c8b.zip |
add the observer hash to the cache key in categories_widget()
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r-- | include/taxonomy.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php index 49b364154..45287fa63 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -7,6 +7,7 @@ use Zotlabs\Lib\Cache; use Zotlabs\Lib\Config; +use Zotlabs\Daemon\Master; function file_tag_encode($s) { @@ -358,7 +359,7 @@ function pub_tagadelic($net, $site, $limit, $recent, $safemode, $type) { } } - $key = __FUNCTION__ . "-" . md5($site . $recent . $safemode . $limit . $type); + $key = __FUNCTION__ . '_' . md5($site . $recent . $safemode . $limit . $type); $content = Cache::get($key, '5 MINUTE'); if(! $content) { @@ -378,7 +379,7 @@ function pub_tagadelic($net, $site, $limit, $recent, $safemode, $type) { (intval($count) ? "LIMIT $count" : '') ]; - \Zotlabs\Daemon\Master::Summon([ 'Cache_query', $key, base64_encode(json_encode($arr)) ]); + Master::Summon([ 'Cache_query', $key, base64_encode(json_encode($arr)) ]); } $r = unserialize($content); |