diff options
-rw-r--r-- | classes/User.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/User.php b/classes/User.php index 65b2d663e..62f38ebff 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; |