]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
can actually take all the data in the window
authorEvan Prodromou <evan@prodromou.name>
Sat, 20 Sep 2008 17:47:00 +0000 (13:47 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 20 Sep 2008 17:47:00 +0000 (13:47 -0400)
darcs-hash:20080920174700-84dde-a00751e0eafd9adc4580924bb41c11b0649b7fe5.gz

classes/User.php

index 65b2d663ecb0b81cfcc9cf87ef496f66d161fa16..62f38ebffb62117cc10a2bcbf063cbd4b17aa716 100644 (file)
@@ -145,7 +145,7 @@ class User extends DB_DataObject
                # We clearly need a more elegant way to make this work.
                
                if (common_config('memcached', 'enabled')) {
-                       if ($offset + $limit < WITHFRIENDS_CACHE_WINDOW) {
+                       if ($offset + $limit <= WITHFRIENDS_CACHE_WINDOW) {
                                $cached = $this->noticesWithFriendsWindow();
                                $wrapper = new NoticeWrapper(array_slice($cached, $offset, $limit));
                                return $wrapper;