Skip to content

Commit

Permalink
Revert "allow multiple requests on the same IP"
Browse files Browse the repository at this point in the history
This reverts commit 615bacc.
  • Loading branch information
scribu committed Mar 13, 2012
1 parent 13f6da3 commit 45e313a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ function record( $page_url = '', $page_title = '' ) {
// Purge table
$wpdb->query( $wpdb->prepare( "
DELETE FROM $wpdb->useronline
WHERE timestamp < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL %d SECOND)
WHERE user_ip = %s
OR timestamp < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL %d SECOND)
", $user_ip, self::$options->timeout ) );

// Insert Users
Expand Down

0 comments on commit 45e313a

Please sign in to comment.