Fix bogus stats where stashes counted as misses

Change-Id: Iefacd37f1470c99a04bb199651d8a73ae4da28fc
This commit is contained in:
Aaron Schulz 2016-08-29 20:37:14 -07:00
parent 3e8543f82d
commit 8070a5b15b

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