Move add to notice inboxes before cache clearing in hopes they will be

updated
This commit is contained in:
Evan Prodromou 2009-01-19 22:21:16 -05:00
parent 2f6152f2f3
commit 3285e0979d
1 changed files with 4 additions and 1 deletions

View File

@ -155,6 +155,10 @@ class Notice extends Memcached_DataObject
common_save_replies($notice);
$notice->saveTags();
// Add to notice inboxes
$notice->addToInboxes();
# Clear the cache for subscribed users, so they'll update at next request
# XXX: someone clever could prepend instead of clearing the cache
@ -162,7 +166,6 @@ class Notice extends Memcached_DataObject
$notice->blowCaches();
}
$notice->addToInboxes();
return $notice;
}