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 17:18:26 +0000
commit6e592ed2005eef2a7ae6fa96d4e1afbbde85523d (patch)
tree6f088d92af02b06a4fdbbd6ab6bd74f6614083c6 /Zotlabs
parent6c033fc7768a48d70fea1375b157e8474a98b570 (diff)
downloadvolse-hubzilla-6e592ed2005eef2a7ae6fa96d4e1afbbde85523d.tar.gz
volse-hubzilla-6e592ed2005eef2a7ae6fa96d4e1afbbde85523d.tar.bz2
volse-hubzilla-6e592ed2005eef2a7ae6fa96d4e1afbbde85523d.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 cd9597e9a..d6f66f1f0 100644
--- a/Zotlabs/Daemon/Cache_query.php
+++ b/Zotlabs/Daemon/Cache_query.php
@@ -11,6 +11,7 @@ class Cache_query {
if(! $argc == 3)
return;
+ $r = null;
$key = $argv[1];
$pid = get_config('procid', $key, false);
@@ -28,8 +29,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));
+ }
del_config('procid', $key);