There are several counters in xf and addons.
The easiest one i have seen in an addon for resources. There is a table with one col collecting the resource_ids.
Then a count for ids fills another field in another table while we delete the cols in that count_table.
Now my question: What would be the best way, when i want to count unique hits for 60 minutes?
user-id, ip, cookies?
And how i should count?
Insert something, count it, delete it? Maybe with a unique index on id and ip?
Or update a counter?
The easiest one i have seen in an addon for resources. There is a table with one col collecting the resource_ids.
Then a count for ids fills another field in another table while we delete the cols in that count_table.
Now my question: What would be the best way, when i want to count unique hits for 60 minutes?
user-id, ip, cookies?
And how i should count?
Insert something, count it, delete it? Maybe with a unique index on id and ip?
Or update a counter?