diff options
author | Byron Jones <bjones@mozilla.com> | 2014-01-31 15:18:51 +0800 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2014-01-31 15:18:51 +0800 |
commit | c5464b5bb7dfece2bad2b8af9eba4d9b6d07d778 (patch) | |
tree | 092c3a3ecb3152aba305c8ec4323056fc27865e2 /editusers.cgi | |
parent | cbd6506533f7370ba27c6928e887889627acb6b9 (diff) | |
download | bugs-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 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editusers.cgi b/editusers.cgi index f4e3c0841..83f364528 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -650,6 +650,11 @@ if ($action eq 'search') { $dbh->bz_commit_transaction(); delete_token($token); + # It's complex to determine which items now need to be flushed from + # memcached. As user deletion is expected to be a rare event, we just + # flush the entire cache when a user is deleted. + Bugzilla->memcached->clear_all(); + $vars->{'message'} = 'account_deleted'; $vars->{'otheruser'}{'login'} = $otherUser->login; $vars->{'restrictablegroups'} = $user->bless_groups(); |