From 9193214274889f2b7636146e72d8200e9bfaeb7b Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 4 Mar 2014 15:50:54 +0800 Subject: Bug 966180: backport bug 956233 to bmo (enable USE_MEMCACHE on most objects) --- contrib/reorg-tools/move_flag_types.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/reorg-tools/move_flag_types.pl') diff --git a/contrib/reorg-tools/move_flag_types.pl b/contrib/reorg-tools/move_flag_types.pl index a75b7f497..7b7fe2081 100755 --- a/contrib/reorg-tools/move_flag_types.pl +++ b/contrib/reorg-tools/move_flag_types.pl @@ -162,6 +162,10 @@ if (@$flags) { $flag_update_sth->execute($params{'newid'}, $flag_id); } } + + # It's complex to determine which items now need to be flushed from memcached. + # As this is expected to be a rare event, we just flush the entire cache. + Bugzilla->memcached->clear_all(); } else { print "No flags to move\n"; -- cgit v1.2.3-24-g4f1b