]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Move add to notice inboxes before cache clearing in hopes they will be
authorEvan Prodromou <evan@zhora.(none)>
Tue, 20 Jan 2009 03:21:16 +0000 (22:21 -0500)
committerEvan Prodromou <evan@zhora.(none)>
Tue, 20 Jan 2009 03:21:16 +0000 (22:21 -0500)
updated

classes/Notice.php

index ca8283bcef35221d2a952dd6d284d565d43ca804..d614ceebab23285f0ac136896ea9f8c919c54a62 100644 (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;
        }