r41322 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41321‎ | r41322 | r41323 >
Date:22:42, 27 September 2008
Author:ialex
Status:old
Tags:
Comment:
rm debugging code
Modified paths:
  • /trunk/extensions/SpamRegex/SpecialSpamRegex.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SpamRegex/SpecialSpamRegex.php
@@ -176,7 +176,7 @@
177177 $key = wfSpamRegexCacheKey( 'spamRegexCore', 'numResults' );
178178 $cached = $wgMemc->get( $key );
179179 $results = 0;
180 - if ( true || is_null( $cached ) ) {
 180+ if ( is_null( $cached ) ) {
181181 $dbr = wfGetDB( DB_SLAVE );
182182 $results = $dbr->selectField( 'spam_regex', 'COUNT(*)', '', __METHOD__ );
183183 $wgMemc->set( $key, $results, SPAMREGEX_EXPIRE );