Index: trunk/phase3/includes/User.php |
— | — | @@ -1340,11 +1340,11 @@ |
1341 | 1341 | } else { |
1342 | 1342 | wfDebug( __METHOD__ . ": ok. $key at $count $summary\n" ); |
1343 | 1343 | } |
1344 | | - $wgMemc->incr( $key ); |
1345 | 1344 | } else { |
1346 | 1345 | wfDebug( __METHOD__ . ": adding record for $key $summary\n" ); |
1347 | | - $wgMemc->set( $key, 1, intval( $period ) ); // first ping |
| 1346 | + $wgMemc->add( $key, 0, intval( $period ) ); // first ping |
1348 | 1347 | } |
| 1348 | + $wgMemc->incr( $key ); |
1349 | 1349 | } |
1350 | 1350 | |
1351 | 1351 | wfProfileOut( __METHOD__ ); |