Remove some debug comments in query-by-id
This commit is contained in:
parent
c7105c2af1
commit
fe53e780be
@ -215,7 +215,6 @@ class Notice extends Memcached_DataObject
|
|||||||
if (common_config('queue', 'enabled')) {
|
if (common_config('queue', 'enabled')) {
|
||||||
$notice->blowAuthorCaches();
|
$notice->blowAuthorCaches();
|
||||||
} else {
|
} else {
|
||||||
common_debug("Blowing caches for new notice.");
|
|
||||||
$notice->blowCaches();
|
$notice->blowCaches();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -353,9 +352,9 @@ class Notice extends Memcached_DataObject
|
|||||||
'WHERE subscription.subscribed = ' . $this->profile_id);
|
'WHERE subscription.subscribed = ' . $this->profile_id);
|
||||||
|
|
||||||
while ($user->fetch()) {
|
while ($user->fetch()) {
|
||||||
$cache->delete(common_cache_key('notice_inbox:by_user:'.$user_id));
|
$cache->delete(common_cache_key('notice_inbox:by_user:'.$user->id));
|
||||||
if ($blowLast) {
|
if ($blowLast) {
|
||||||
$cache->delete(common_cache_key('notice_inbox:by_user:'.$user_id.';last'));
|
$cache->delete(common_cache_key('notice_inbox:by_user:'.$user->id.';last'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$user->free();
|
$user->free();
|
||||||
|
@ -50,7 +50,6 @@ class Notice_inbox extends Memcached_DataObject
|
|||||||
if (empty($cache) ||
|
if (empty($cache) ||
|
||||||
$since_id != 0 || $before_id != 0 || !is_null($since) ||
|
$since_id != 0 || $before_id != 0 || !is_null($since) ||
|
||||||
($offset + $limit) > INBOX_CACHE_WINDOW) {
|
($offset + $limit) > INBOX_CACHE_WINDOW) {
|
||||||
common_debug('Doing direct DB hit for notice_inbox since the params are screwy.');
|
|
||||||
return Notice_inbox::_streamDirect($user_id, $offset, $limit, $since_id, $before_id, $since);
|
return Notice_inbox::_streamDirect($user_id, $offset, $limit, $since_id, $before_id, $since);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,7 +59,6 @@ class Notice_inbox extends Memcached_DataObject
|
|||||||
|
|
||||||
if (!empty($idstr)) {
|
if (!empty($idstr)) {
|
||||||
// Cache hit! Woohoo!
|
// Cache hit! Woohoo!
|
||||||
common_debug('Cache hit for notice_inbox.');
|
|
||||||
$window = explode(',', $idstr);
|
$window = explode(',', $idstr);
|
||||||
$ids = array_slice($window, $offset, $limit);
|
$ids = array_slice($window, $offset, $limit);
|
||||||
return $ids;
|
return $ids;
|
||||||
@ -69,8 +67,6 @@ class Notice_inbox extends Memcached_DataObject
|
|||||||
$laststr = common_cache_key($idkey.';last');
|
$laststr = common_cache_key($idkey.';last');
|
||||||
|
|
||||||
if (!empty($laststr)) {
|
if (!empty($laststr)) {
|
||||||
common_debug('Cache hit for notice_inbox on last item.');
|
|
||||||
|
|
||||||
$window = explode(',', $laststr);
|
$window = explode(',', $laststr);
|
||||||
$last_id = $window[0];
|
$last_id = $window[0];
|
||||||
$new_ids = Notice_inbox::_streamDirect($user_id, 0, INBOX_CACHE_WINDOW,
|
$new_ids = Notice_inbox::_streamDirect($user_id, 0, INBOX_CACHE_WINDOW,
|
||||||
|
Loading…
Reference in New Issue
Block a user