aboutsummaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2014-01-31 15:18:51 +0800
committerByron Jones <bjones@mozilla.com>2014-01-31 15:18:51 +0800
commitc5464b5bb7dfece2bad2b8af9eba4d9b6d07d778 (patch)
tree092c3a3ecb3152aba305c8ec4323056fc27865e2 /userprefs.cgi
parentcbd6506533f7370ba27c6928e887889627acb6b9 (diff)
downloadbugs-c5464b5bb7dfece2bad2b8af9eba4d9b6d07d778.tar
bugs-c5464b5bb7dfece2bad2b8af9eba4d9b6d07d778.tar.gz
bugs-c5464b5bb7dfece2bad2b8af9eba4d9b6d07d778.tar.bz2
bugs-c5464b5bb7dfece2bad2b8af9eba4d9b6d07d778.tar.xz
bugs-c5464b5bb7dfece2bad2b8af9eba4d9b6d07d778.zip
Bug 956233: enable USE_MEMCACHE on most objects
r=dkl, a=glob
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 638004c1e..8a93bf5d3 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -491,12 +491,13 @@ sub SaveSavedSearches {
}
$user->flush_queries_cache;
-
+
# Update profiles.mybugslink.
my $showmybugslink = defined($cgi->param("showmybugslink")) ? 1 : 0;
$dbh->do("UPDATE profiles SET mybugslink = ? WHERE userid = ?",
- undef, ($showmybugslink, $user->id));
+ undef, ($showmybugslink, $user->id));
$user->{'showmybugslink'} = $showmybugslink;
+ Bugzilla->memcached->clear({ table => 'profiles', id => $user->id });
}