Merge "Fix bogus stats where stashes counted as misses"

This commit is contained in:
jenkins-bot 2016-08-30 05:58:25 +00:00 committed by Gerrit Code Review
commit b2872a8115

View file

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