]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix bug in 36a55d84.
authorDiogo Cordeiro <diogo@fc.up.pt>
Thu, 25 Apr 2019 17:51:44 +0000 (18:51 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Thu, 25 Apr 2019 17:51:44 +0000 (18:51 +0100)
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

index 83fa5eaad77f7894aed359720eaf244147c35c45..c8b5ccd7af172c29c7f1b7ca531dd45d9b9fd86f 100644 (file)
@@ -41,6 +41,7 @@ if (!defined('GNUSOCIAL')) {
  * @author    Evan Prodromou <evan@status.net>
  * @author    Mikael Nordfeldth <mmn@hethane.se>
  * @author    Alexei Sorokin <sor.alexei@meowr.ru>
+ * @author    chimo <chimo@chromic.org>
  * @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);
     }
 }