| Index: trunk/phase3/includes/GlobalFunctions.php |
| — | — | @@ -1494,19 +1494,6 @@ |
| 1495 | 1495 | */ |
| 1496 | 1496 | function wfIncrStats( $key ) { |
| 1497 | 1497 | global $wgDBname, $wgMemc; |
| 1498 | | - /* LIVE HACK AVOID MEMCACHED ACCESSES DURING HIGH LOAD */ |
| 1499 | | - if ($wgDBname != 'enwiki' and $wgDBname != 'dewiki' and $wgDBname != 'commonswiki' and $wgDBname != 'testwiki') |
| 1500 | | - return true; |
| 1501 | | - static $socket; |
| 1502 | | - if (!$socket) { |
| 1503 | | - $socket=socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); |
| 1504 | | - $statline="{$wgDBname} - 1 1 1 1 1 -total\n"; |
| 1505 | | - socket_sendto($socket,$statline,strlen($statline),0,"webster","3811"); |
| 1506 | | - } |
| 1507 | | - $statline="{$wgDBname} - 1 1 1 1 1 {$key}\n"; |
| 1508 | | - socket_sendto($socket,$statline,strlen($statline),0,"webster","3811"); |
| 1509 | | - return true; |
| 1510 | | - |
| 1511 | 1498 | $key = "$wgDBname:stats:$key"; |
| 1512 | 1499 | if ( is_null( $wgMemc->incr( $key ) ) ) { |
| 1513 | 1500 | $wgMemc->add( $key, 1 ); |