]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
cache key for member_ids
authorEvan Prodromou <evan@status.net>
Wed, 4 Jul 2012 18:39:26 +0000 (14:39 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 4 Jul 2012 18:39:26 +0000 (14:39 -0400)
classes/Profile.php
classes/User_group.php

index f0a326e21236735637be86f1e5978627a7199b2f..7005e776a59da542c91ee18fff2d8ff5e0e1ae71 100644 (file)
@@ -595,7 +595,7 @@ class Profile extends Managed_DataObject
             if (Event::handle('StartJoinGroup', array($group, $this))) {
                 $join = Group_member::join($group->id, $this->id);
                 self::blow('profile:groups:%d', $this->id);
-                self::blow('group:members:%d', $group->id);
+                self::blow('group:member_ids:%d', $group->id);
                 self::blow('group:member_count:%d', $group->id);
                 Event::handle('EndJoinGroup', array($group, $this));
             }
@@ -617,7 +617,7 @@ class Profile extends Managed_DataObject
         if (Event::handle('StartLeaveGroup', array($group, $this))) {
             Group_member::leave($group->id, $this->id);
             self::blow('profile:groups:%d', $this->id);
-            self::blow('group:members:%d', $group->id);
+            self::blow('group:member_ids:%d', $group->id);
             self::blow('group:member_count:%d', $group->id);
             Event::handle('EndLeaveGroup', array($group, $this));
         }
index f99feeb8747f2426a9abbdc2fe6c7dee06cebea5..406537dd8a40f32a84d34ee4c034ae66b173c29e 100644 (file)
@@ -148,7 +148,7 @@ class User_group extends Managed_DataObject
             $ids = $this->getMemberIDs($offset,
                                        $limit);
         } else {
-            $key = sprintf('group:members:%d', $this->id);
+            $key = sprintf('group:member_ids:%d', $this->id);
             $window = self::cacheGet($key);
             if ($window === false) {
                 $window = $this->getMemberIDs(0,