mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Fix bogus stats where stashes counted as misses
Change-Id: Iefacd37f1470c99a04bb199651d8a73ae4da28fc
This commit is contained in:
parent
3e8543f82d
commit
8070a5b15b
|
@ -915,13 +915,13 @@ class AbuseFilter {
|
|||
}
|
||||
|
||||
if ( is_array( $filter_matched ) ) {
|
||||
if ( $isForEdit ) {
|
||||
if ( $isForEdit && $mode !== 'stash' ) {
|
||||
$logger->info( __METHOD__ . ": cache hit for '$title' (key $stashKey)." );
|
||||
$statsd->increment( 'abusefilter.check-stash.hit' );
|
||||
}
|
||||
} else {
|
||||
$filter_matched = self::checkAllFilters( $vars, $group );
|
||||
if ( $isForEdit ) {
|
||||
if ( $isForEdit && $mode !== 'stash' ) {
|
||||
$logger->info( __METHOD__ . ": cache miss for '$title' (key $stashKey)." );
|
||||
$statsd->increment( 'abusefilter.check-stash.miss' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue