can actually take all the data in the window

darcs-hash:20080920174700-84dde-a00751e0eafd9adc4580924bb41c11b0649b7fe5.gz
This commit is contained in:
Evan Prodromou 2008-09-20 13:47:00 -04:00
parent 1a81057985
commit d53a4123f3
1 changed files with 1 additions and 1 deletions

View 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;