aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-25 16:09:53 +0000
committerMario <mario@mariovavti.com>2024-03-25 16:09:53 +0000
commit842df8a7991688ccb0770dcca0119acf728e1c8b (patch)
treed06f81878fc3752829f85c1ea1262dd7bd92ade7 /Zotlabs
parent2ff84ab25a98d26d5e6e941fffff28b463ca3335 (diff)
downloadvolse-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 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Cache_query.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Daemon/Cache_query.php b/Zotlabs/Daemon/Cache_query.php
index 8e5c6b2ea..d5788795f 100644
--- a/Zotlabs/Daemon/Cache_query.php
+++ b/Zotlabs/Daemon/Cache_query.php
@@ -12,6 +12,7 @@ class Cache_query {
if(! $argc == 3)
return;
+ $r = null;
$key = $argv[1];
$pid = Config::Get('procid', $key, false);
@@ -29,8 +30,10 @@ class Cache_query {
$arr = json_decode(base64_decode($argv[0]), true);
$r = call_user_func_array('q', $arr);
- if($r)
+
+ if(is_array($r)) {
Cache::set($key, serialize($r));
+ }
Config::Delete('procid', $key);