forked from GNUsocial/gnu-social
clear memcached cache in fixup_inboxes
darcs-hash:20081113223514-84dde-be89824e7986a9af30bd42e89228a0f7ce949240.gz
This commit is contained in:
parent
1d3ac2f0d7
commit
fbb6efb131
@ -38,6 +38,7 @@ common_log(LOG_INFO, 'Updating user inboxes.');
|
|||||||
|
|
||||||
$user = new User();
|
$user = new User();
|
||||||
$cnt = $user->find();
|
$cnt = $user->find();
|
||||||
|
$cache = common_memcache();
|
||||||
|
|
||||||
while ($user->fetch()) {
|
while ($user->fetch()) {
|
||||||
common_log(LOG_INFO, 'Updating inbox for user ' . $user->id);
|
common_log(LOG_INFO, 'Updating inbox for user ' . $user->id);
|
||||||
@ -62,4 +63,7 @@ while ($user->fetch()) {
|
|||||||
$user->query('COMMIT');
|
$user->query('COMMIT');
|
||||||
$inbox->free();
|
$inbox->free();
|
||||||
unset($inbox);
|
unset($inbox);
|
||||||
|
if ($cache) {
|
||||||
|
$cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user