mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
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:
parent
b46afcc424
commit
d0dc183314
5
Views/AbuseFilterViewEdit.php
Normal file → Executable file
5
Views/AbuseFilterViewEdit.php
Normal file → Executable 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 );
|
||||
|
|
Loading…
Reference in a new issue