summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-13 17:35:14 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-13 17:35:14 -0500
commitfbb6efb13118b78d76030af9e84f981518036fef (patch)
tree7443bb37d8656f2227668b2ea19ed00b8166d5fa /scripts
parent1d3ac2f0d7ce9778d2252c49c84f4157e1fdc10c (diff)
clear memcached cache in fixup_inboxes
darcs-hash:20081113223514-84dde-be89824e7986a9af30bd42e89228a0f7ce949240.gz
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fixup_inboxes.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php
index 14a9f86d3..c3ead16bf 100755
--- a/scripts/fixup_inboxes.php
+++ b/scripts/fixup_inboxes.php
@@ -38,6 +38,7 @@ common_log(LOG_INFO, 'Updating user inboxes.');
$user = new User();
$cnt = $user->find();
+$cache = common_memcache();
while ($user->fetch()) {
common_log(LOG_INFO, 'Updating inbox for user ' . $user->id);
@@ -62,4 +63,7 @@ while ($user->fetch()) {
$user->query('COMMIT');
$inbox->free();
unset($inbox);
+ if ($cache) {
+ $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
+ }
}