mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-23 10:18:22 +00:00
Merge "Fix bogus stats where stashes counted as misses"
This commit is contained in:
commit
b2872a8115
|
@ -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