From 0042971d74f2013d6eda2978b4479d3bab7e42b8 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Thu, 25 Apr 2019 18:51:44 +0100 Subject: [PATCH] Fix bug in 36a55d84. We still have to further review and improve the caching of streams. Important related changes: 2272cc24#diff-8633314d55a2834ab2ea425d7157bec14aca672L60 Important related discussion: https://github.com/chimo/gs-rediscache/issues/{1,2} --- lib/inboxnoticestream.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/inboxnoticestream.php b/lib/inboxnoticestream.php index 83fa5eaad7..c8b5ccd7af 100644 --- a/lib/inboxnoticestream.php +++ b/lib/inboxnoticestream.php @@ -41,6 +41,7 @@ if (!defined('GNUSOCIAL')) { * @author Evan Prodromou * @author Mikael Nordfeldth * @author Alexei Sorokin + * @author chimo * @copyright 2011 StatusNet, Inc. * @copyright 2014 Free Software Foundation, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 @@ -56,8 +57,7 @@ class InboxNoticeStream extends ScopingNoticeStream */ public function __construct(Profile $target, Profile $scoped = null) { - // FIXME: we don't use CachingNoticeStream - but maybe we should? - parent::__construct(new CachingNoticeStream(new RawInboxNoticeStream($target), 'profileall'), $scoped); + parent::__construct(new CachingNoticeStream(new RawInboxNoticeStream($target), 'profileall:'.$target->getID()), $scoped); } } -- 2.39.5