From 82f2fe8cca3914ad2a962855951be226141a9d78 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 13 Jan 2010 20:30:42 -0800 Subject: [PATCH] in case we have cached 'fake' inboxes, make sure we rebuild them running initializeinbox.php --- scripts/initializeinbox.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/initializeinbox.php b/scripts/initializeinbox.php index 5ae9f7d036..781179401c 100644 --- a/scripts/initializeinbox.php +++ b/scripts/initializeinbox.php @@ -93,6 +93,12 @@ function initializeInbox($user) $inbox = Inbox::staticGet('user_id', $user_id); + if ($inbox && !empty($inbox->fake)) { + if (!have_option('q', 'quiet')) { + echo "(replacing faux cached inbox)"; + } + $inbox = false; + } if (!empty($inbox)) { if (!have_option('q', 'quiet')) { print "SKIP\n";