Revision: 43847 Author: aaron Date: 2008-11-22 07:46:21 +0000 (Sat, 22 Nov 2008)
Log Message: ----------- Move down cache clearing Modified Paths: -------------- trunk/extensions/ConfirmAccount/RequestAccount_body.php Modified: trunk/extensions/ConfirmAccount/RequestAccount_body.php =================================================================== --- trunk/extensions/ConfirmAccount/RequestAccount_body.php 2008-11-22 06:49:16 UTC (rev 43846) +++ trunk/extensions/ConfirmAccount/RequestAccount_body.php 2008-11-22 07:46:21 UTC (rev 43847) @@ -390,10 +390,6 @@ ), __METHOD__ ); - # Clear cache for notice of how many account requests there are - global $wgMemc; - $key = wfMemcKey( 'confirmaccount', 'noticecount' ); - $wgMemc->delete( $key ); # Send confirmation, required! $result = $this->sendConfirmationMail( $u, $token, $expires ); if( WikiError::isError( $result ) ) { @@ -408,10 +404,13 @@ $transaction->commit(); FileStore::unlock(); } + # Clear cache for notice of how many account requests there are + global $wgMemc; + $key = wfMemcKey( 'confirmaccount', 'noticecount' ); + $wgMemc->delete( $key ); # No request spamming... # BC: check if isPingLimitable() exists if( $wgAccountRequestThrottle && ( !method_exists($wgUser,'isPingLimitable') || $wgUser->isPingLimitable() ) ) { - global $wgMemc; $key = wfMemcKey( 'acctrequest', 'ip', wfGetIP() ); if( !$value = $wgMemc->incr( $key ) ) { $wgMemc->set( $key, 1, 86400 ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs