forked from GNUsocial/gnu-social
can actually take all the data in the window
darcs-hash:20080920174700-84dde-a00751e0eafd9adc4580924bb41c11b0649b7fe5.gz
This commit is contained in:
parent
1a81057985
commit
d53a4123f3
|
@ -145,7 +145,7 @@ class User extends DB_DataObject
|
||||||
# We clearly need a more elegant way to make this work.
|
# We clearly need a more elegant way to make this work.
|
||||||
|
|
||||||
if (common_config('memcached', 'enabled')) {
|
if (common_config('memcached', 'enabled')) {
|
||||||
if ($offset + $limit < WITHFRIENDS_CACHE_WINDOW) {
|
if ($offset + $limit <= WITHFRIENDS_CACHE_WINDOW) {
|
||||||
$cached = $this->noticesWithFriendsWindow();
|
$cached = $this->noticesWithFriendsWindow();
|
||||||
$wrapper = new NoticeWrapper(array_slice($cached, $offset, $limit));
|
$wrapper = new NoticeWrapper(array_slice($cached, $offset, $limit));
|
||||||
return $wrapper;
|
return $wrapper;
|
||||||
|
|
Loading…
Reference in New Issue