What exactly does this hold?
Jul 9, 2004, 12:02 AM
Veteran / Moderator (18436 posts)
Jul 9, 2004, 12:02 AM
Post #2 of 6
Views: 1720
It should hold the IP and LinkID's from ratings. i.e, if someone rated LinkID "1234", and their IP address was 255.255.1.1, then it would insert these two entries in the table. You can then run a basic IP/LinkID check, to see if they have rated the same link previously :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Jul 9, 2004, 6:29 AM
Veteran / Moderator (18436 posts)
Jul 9, 2004, 6:29 AM
Post #4 of 6
Views: 1729
The ClickTrack one should be fine to delete. Sometimes they can get quite large :(
Not sure about the "Overhead" table though, sorry.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Not sure about the "Overhead" table though, sorry.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
I think that the ClickTrack table is emptied of data that is older than 2 days, when nph-build.cgi is run. The code is in Build.pm:
$SUBS{build_reset_hits} = <<'END_OF_SUB';
sub build_reset_hits {
------------------------------------------------------------------
Remove old hit and rate tracking information.
Links::init_date();
my $delete_by = GT::Date::date_get ( time() - 172800 ); # 2 days old
my $click_db = $DB->table ('ClickTrack');
$click_db->delete ( GT::SQL::Condition->new ( 'Created', '<', $delete_by ));
}
END_OF_SUB
I guess if you run in dynamic mode, though, and don't have a need to regularly do the Build All or Build Changed, then the data will just keep accummulating in the ClickTrack table....
--Frank
$SUBS{build_reset_hits} = <<'END_OF_SUB';
sub build_reset_hits {
------------------------------------------------------------------
Remove old hit and rate tracking information.
Links::init_date();
my $delete_by = GT::Date::date_get ( time() - 172800 ); # 2 days old
my $click_db = $DB->table ('ClickTrack');
$click_db->delete ( GT::SQL::Condition->new ( 'Created', '<', $delete_by ));
}
END_OF_SUB
I guess if you run in dynamic mode, though, and don't have a need to regularly do the Build All or Build Changed, then the data will just keep accummulating in the ClickTrack table....
--Frank