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
This commit is contained in:
Aaron Schulz 2015-04-29 15:42:14 -07:00
parent b46afcc424
commit d0dc183314

5
Views/AbuseFilterViewEdit.php Normal file → Executable file
View file

@ -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 );