diff options
author | Mario <mario@mariovavti.com> | 2024-03-25 16:09:53 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-25 17:18:26 +0000 |
commit | 6e592ed2005eef2a7ae6fa96d4e1afbbde85523d (patch) | |
tree | 6f088d92af02b06a4fdbbd6ab6bd74f6614083c6 /Zotlabs | |
parent | 6c033fc7768a48d70fea1375b157e8474a98b570 (diff) | |
download | volse-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.php | 5 |
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); |