From 3ff56a88eebef3699df7e524dea89be7b593337f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 12 May 2014 13:49:53 +0800 Subject: Bug 992767: backport bug 987032 to bmo (allow memcached to cache bugzilla configuration information) --- Bugzilla/Group.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla/Group.pm') diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm index 109f06d7f..732de348f 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -37,6 +37,8 @@ use Bugzilla::Config qw(:admin); ##### Module Initialization ### ############################### +use constant IS_CONFIG => 1; + use constant DB_COLUMNS => qw( groups.id groups.name @@ -231,6 +233,7 @@ sub update { Bugzilla::Hook::process('group_end_of_update', { group => $self, changes => $changes }); $dbh->bz_commit_transaction(); + Bugzilla->memcached->clear_config(); return $changes; } @@ -420,6 +423,7 @@ sub create { Bugzilla::Hook::process('group_end_of_create', { group => $group }); $dbh->bz_commit_transaction(); + Bugzilla->memcached->clear_config(); return $group; } -- cgit v1.2.3-24-g4f1b