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

View File

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