PDA

View Full Version : Refresh Limit


Cal Poly Forum
07-18-2003, 05:52 AM
When a member with the same IP refreshes the page, the "Views" increases.

How do I stop this so that when the same member refreshes the page, the "Views" will not increase. Only increases when another member watches the page for the first time.

Logician
07-19-2003, 12:01 PM
This will put a big burden on your database so I'd say forget it.

To ignore same members' view you have to first save all views in your database so that you can check a view if it exist or not before incrementing the count. Even in a small board attempting to keep the records of all thread views would take way a lot of database space, let alone increasing MYSQL activities.

Cal Poly Forum
07-19-2003, 05:44 PM
vbulletin.com and vbulletin.org has this feature, right?

NTLDR
07-19-2003, 06:16 PM
vB.com uses a cron job to update the views each hour. Not sure if thats hacked in here or not.

Cal Poly Forum
07-19-2003, 07:26 PM
Ahh cron job. I have that option or feature in my host but I have no idea where to use it on.

Before I search on google, how do I set the cron job so that it would do the same as vb.com and vb.org (where the "views" would not go up when the same user views the thread)?

NTLDR
07-19-2003, 08:00 PM
If your running vB3 then this is an option, if your using vB2 then you can try this hack: http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=574

Cal Poly Forum
07-19-2003, 08:21 PM
ahh thank you. Exactly what I needed.
Hacks Database is hard to find on the forum category.