From d53a4123f369087afd901073a4c865e9703ff698 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 20 Sep 2008 13:47:00 -0400 Subject: [PATCH] can actually take all the data in the window darcs-hash:20080920174700-84dde-a00751e0eafd9adc4580924bb41c11b0649b7fe5.gz --- classes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/User.php b/classes/User.php index 65b2d663ec..62f38ebffb 100644 --- a/classes/User.php +++ b/classes/User.php @@ -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; -- 2.39.5