diff options
author | Mario <mario@mariovavti.com> | 2019-11-28 08:22:53 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-28 08:22:53 +0000 |
commit | 2b08519f5ad2cf7803736b42159f92f754acb0bd (patch) | |
tree | d496894f37f05e0ef8d09b4c084a4e2cb75f7363 /Zotlabs/Module/Sse_bs.php | |
parent | fcb065bcb2f8e61d1d9e804f8f251967732ee037 (diff) | |
download | volse-hubzilla-2b08519f5ad2cf7803736b42159f92f754acb0bd.tar.gz volse-hubzilla-2b08519f5ad2cf7803736b42159f92f754acb0bd.tar.bz2 volse-hubzilla-2b08519f5ad2cf7803736b42159f92f754acb0bd.zip |
sse: improve caching fix an issue with removing notifications and move chatpresence expiration to cron
Diffstat (limited to 'Zotlabs/Module/Sse_bs.php')
-rw-r--r-- | Zotlabs/Module/Sse_bs.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php index 270e8b9b9..5e00593ef 100644 --- a/Zotlabs/Module/Sse_bs.php +++ b/Zotlabs/Module/Sse_bs.php @@ -40,9 +40,6 @@ class Sse_bs extends Controller { self::$offset = 0; self::$xchans = ''; - set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert()); - set_xconfig(self::$ob_hash, 'sse', 'language', App::$language); - if(!empty($_GET['nquery']) && $_GET['nquery'] !== '%') { $nquery = $_GET['nquery']; @@ -80,6 +77,10 @@ class Sse_bs extends Controller { default: } + set_xconfig(self::$ob_hash, 'sse', 'timestamp', datetime_convert()); + set_xconfig(self::$ob_hash, 'sse', 'notifications', []); // reset the cache + set_xconfig(self::$ob_hash, 'sse', 'language', App::$language); + if(self::$offset && $f) { $result = self::$f(true); json_return_and_die($result); |