]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix cache deletion code
authorEvan Prodromou <evan@prodromou.name>
Mon, 15 Sep 2008 07:32:15 +0000 (03:32 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 15 Sep 2008 07:32:15 +0000 (03:32 -0400)
darcs-hash:20080915073215-84dde-34bdd1a40ce310bca5bbb6f11ed4df79c7915cb2.gz

classes/Notice.php

index 181a3bd1b3b63ea76d84a290fe851a0f7986e2de..183d6108e2a184cefa8047f5de573773250d80ff 100644 (file)
@@ -125,7 +125,7 @@ class Notice extends DB_DataObject
                                                         'WHERE subscription.subscribed = ' . $notice->profile_id);
 
                                while ($user->fetch()) {
-                                       $cache->delete(common_cache_key('user:notices_with_friends:' . $this->id));
+                                       $cache->delete(common_cache_key('user:notices_with_friends:' . $user->id));
                                }
                                
                                $user->free();