From 3ef245b21a397e5253ba1bda607a1510245d5c09 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 7 Apr 2014 16:38:31 +0800 Subject: Bug 987032: allow memcached to cache bugzilla configuration information r=dkl, a=glob --- Bugzilla/Classification.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Classification.pm') diff --git a/Bugzilla/Classification.pm b/Bugzilla/Classification.pm index 6e88bdc63..0ae548bb6 100644 --- a/Bugzilla/Classification.pm +++ b/Bugzilla/Classification.pm @@ -23,6 +23,8 @@ use parent qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object Exporter); #### Initialization #### ############################### +use constant IS_CONFIG => 1; + use constant DB_TABLE => 'classifications'; use constant LIST_ORDER => 'sortkey, name'; @@ -67,6 +69,7 @@ sub remove_from_db { foreach my $id (@$product_ids) { Bugzilla->memcached->clear({ table => 'products', id => $id }); } + Bugzilla->memcached->clear_config(); } $self->SUPER::remove_from_db(); -- cgit v1.2.3-24-g4f1b