From d0dc1833149417b3a87e0fad0f3b566f747ad280 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 29 Apr 2015 15:42:14 -0700 Subject: [PATCH] Fixed change tag list purging * Use ChangeTags::purgeTagCacheAll(). * The prior code did not change that actual tag table and in any case did nothing since 878523f6225 due to a key rename. This covers the two keys using two AF hooks. Bug: T91815 Change-Id: I227414cde2e95d4533fdf708579113cd3bf2856a --- Views/AbuseFilterViewEdit.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) mode change 100644 => 100755 Views/AbuseFilterViewEdit.php diff --git a/Views/AbuseFilterViewEdit.php b/Views/AbuseFilterViewEdit.php old mode 100644 new mode 100755 index 7f7c634ed..5ccdbbc8b --- a/Views/AbuseFilterViewEdit.php +++ b/Views/AbuseFilterViewEdit.php @@ -260,10 +260,9 @@ class AbuseFilterViewEdit extends AbuseFilterView { $lp->addEntry( 'modify', $this->getTitle( $new_id ), '', array( $history_id, $new_id ) ); - // Special-case stuff for tags -- purge the tag list cache. + // Purge the tag list cache so the fetchAllTags hook applies tag changes if ( isset( $actions['tag'] ) ) { - global $wgMemc; - $wgMemc->delete( wfMemcKey( 'valid-tags' ) ); + ChangeTags::purgeTagCacheAll(); } AbuseFilter::resetFilterProfile( $new_id );