From: Evan Prodromou Date: Tue, 20 Jan 2009 03:21:16 +0000 (-0500) Subject: Move add to notice inboxes before cache clearing in hopes they will be X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3285e0979dc7e475291f1a8a0931868591fe0de7;p=quix0rs-gnu-social.git Move add to notice inboxes before cache clearing in hopes they will be updated --- diff --git a/classes/Notice.php b/classes/Notice.php index ca8283bcef..d614ceebab 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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; }