summaryrefslogtreecommitdiff
path: root/scripts/fixup_inboxes.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/fixup_inboxes.php')
-rwxr-xr-xscripts/fixup_inboxes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/fixup_inboxes.php b/scripts/fixup_inboxes.php
index d55a53885..c6e4fd071 100755
--- a/scripts/fixup_inboxes.php
+++ b/scripts/fixup_inboxes.php
@@ -46,7 +46,7 @@ if ($start_at) {
}
$cnt = $user->find();
-$cache = common_memcache();
+$cache = Cache::instance();
while ($user->fetch()) {
common_log(LOG_INFO, 'Updating inbox for user ' . $user->id);
@@ -76,6 +76,6 @@ while ($user->fetch()) {
$inbox->free();
unset($inbox);
if ($cache) {
- $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
+ $cache->delete(Cache::key('user:notices_with_friends:' . $user->id));
}
}