Skip to content

Commit

Permalink
Faster visitor counter.
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrowicaksono committed Jun 7, 2016
1 parent fb1e23c commit a68d766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/contents/visitor.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
$photo = 'person.png';
$expire = 0;
// sleep for a while
sleep(2);
sleep(0);
/**
* Insert counter data to database
*/
Expand Down
2 changes: 2 additions & 0 deletions upgrade/upgrade_slims7_cendana_x.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE `biblio` ADD `uid` INT( 11 ) NULL DEFAULT NULL ,
ADD INDEX ( `uid` ) ;

0 comments on commit a68d766

Please sign in to comment.