<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [3331] trunk: Remove unused wp_cache_delete()
calls from caches left over from 1.1.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd>3331</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2010-10-29 17:04:51 +0000 (Fri, 29 Oct 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>Remove unused wp_cache_delete() calls from caches left over from 1.1.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpblogsphp">trunk/bp-blogs.php</a></li>
<li><a href="#trunkbpcorephp">trunk/bp-core.php</a></li>
<li><a href="#trunkbpfriendsphp">trunk/bp-friends.php</a></li>
<li><a href="#trunkbpgroupsphp">trunk/bp-groups.php</a></li>
<li><a href="#trunkbpxprofilephp">trunk/bp-xprofile.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpblogsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs.php (3330 => 3331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs.php        2010-10-29 13:13:35 UTC (rev 3330)
+++ trunk/bp-blogs.php        2010-10-29 17:04:51 UTC (rev 3331)
</span><span class="lines">@@ -727,18 +727,11 @@
</span><span class="cx">
</span><span class="cx"> function bp_blogs_clear_blog_object_cache( $blog_id, $user_id ) {
</span><span class="cx">         wp_cache_delete( 'bp_blogs_of_user_' . $user_id, 'bp' );
</span><del>-        wp_cache_delete( 'bp_blogs_for_user_' . $user_id, 'bp' );
</del><span class="cx">         wp_cache_delete( 'bp_total_blogs_for_user_' . $user_id, 'bp' );
</span><del>-
-        /* Clear the sitewide activity cache */
-        wp_cache_delete( 'sitewide_activity', 'bp' );
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function bp_blogs_format_clear_blog_cache( $recorded_blog_obj ) {
</span><span class="cx">         bp_blogs_clear_blog_object_cache( false, $recorded_blog_obj->user_id );
</span><del>-
-        /* Clear the sitewide activity cache */
-        wp_cache_delete( 'sitewide_activity', 'bp' );
</del><span class="cx">         wp_cache_delete( 'bp_total_blogs', 'bp' );
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkbpcorephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core.php (3330 => 3331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core.php        2010-10-29 13:13:35 UTC (rev 3330)
+++ trunk/bp-core.php        2010-10-29 17:04:51 UTC (rev 3331)
</span><span class="lines">@@ -2116,10 +2116,6 @@
</span><span class="cx"> */
</span><span class="cx"> function bp_core_clear_user_object_cache( $user_id ) {
</span><span class="cx">         wp_cache_delete( 'bp_user_' . $user_id, 'bp' );
</span><del>-        wp_cache_delete( 'bp_core_avatar_v1_u' . $user_id, 'bp' );
-        wp_cache_delete( 'bp_core_avatar_v2_u' . $user_id, 'bp' );
-        wp_cache_delete( 'online_users' );
-        wp_cache_delete( 'newest_users' );
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // List actions to clear super cached pages on, if super cache is installed
</span></span></pre></div>
<a id="trunkbpfriendsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-friends.php (3330 => 3331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-friends.php        2010-10-29 13:13:35 UTC (rev 3330)
+++ trunk/bp-friends.php        2010-10-29 17:04:51 UTC (rev 3331)
</span><span class="lines">@@ -598,10 +598,6 @@
</span><span class="cx">         wp_cache_delete( 'friends_friend_ids_' . $friendship->friend_user_id, 'bp' );
</span><span class="cx">         wp_cache_delete( 'bp_total_friend_count_' . $friendship->initiator_user_id, 'bp' );
</span><span class="cx">         wp_cache_delete( 'bp_total_friend_count_' . $friendship->friend_user_id, 'bp' );
</span><del>-        wp_cache_delete( 'popular_users', 'bp' );
-
-        /* Clear the sitewide activity cache */
-        wp_cache_delete( 'sitewide_activity', 'bp' );
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function friends_clear_friend_notifications() {
</span></span></pre></div>
<a id="trunkbpgroupsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups.php (3330 => 3331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups.php        2010-10-29 13:13:35 UTC (rev 3330)
+++ trunk/bp-groups.php        2010-10-29 17:04:51 UTC (rev 3331)
</span><span class="lines">@@ -2585,11 +2585,6 @@
</span><span class="cx"> */
</span><span class="cx">
</span><span class="cx"> function groups_clear_group_object_cache( $group_id ) {
</span><del>-        wp_cache_delete( 'groups_group_' . $group_id, 'bp' );
-        wp_cache_delete( 'newest_groups', 'bp' );
-        wp_cache_delete( 'active_groups', 'bp' );
-        wp_cache_delete( 'popular_groups', 'bp' );
-        wp_cache_delete( 'groups_random_groups', 'bp' );
</del><span class="cx">         wp_cache_delete( 'bp_total_group_count', 'bp' );
</span><span class="cx"> }
</span><span class="cx"> add_action( 'groups_group_deleted', 'groups_clear_group_object_cache' );
</span></span></pre></div>
<a id="trunkbpxprofilephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile.php (3330 => 3331)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile.php        2010-10-29 13:13:35 UTC (rev 3330)
+++ trunk/bp-xprofile.php        2010-10-29 17:04:51 UTC (rev 3331)
</span><span class="lines">@@ -917,24 +917,13 @@
</span><span class="cx"> */
</span><span class="cx">
</span><span class="cx"> function xprofile_clear_profile_groups_object_cache( $group_obj ) {
</span><del>-        wp_cache_delete( 'xprofile_groups', 'bp' );
</del><span class="cx">         wp_cache_delete( 'xprofile_groups_inc_empty', 'bp' );
</span><span class="cx">         wp_cache_delete( 'xprofile_group_' . $group_obj->id );
</span><del>-
-        /* Clear the sitewide activity cache */
-        wp_cache_delete( 'sitewide_activity', 'bp' );
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> function xprofile_clear_profile_data_object_cache( $group_id ) {
</span><span class="cx">         global $bp;
</span><del>-        wp_cache_delete( 'xprofile_fields_' . $group_id . '_' . $bp->loggedin_user->id, 'bp' );
</del><span class="cx">         wp_cache_delete( 'bp_user_fullname_' . $bp->loggedin_user->id, 'bp' );
</span><del>-        wp_cache_delete( 'online_users', 'bp' );
-        wp_cache_delete( 'newest_users', 'bp' );
-        wp_cache_delete( 'popular_users', 'bp' );
-
-        /* Clear the sitewide activity cache */
-        wp_cache_delete( 'sitewide_activity', 'bp' );
</del><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // List actions to clear object caches on
</span></span></pre>
</div>
</div>
</body>
</html>