Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Number of Views Wron at First?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Number of Views Wron at First?

 Post Reply Post Reply
Author
jeffdaro View Drop Down
Groupie
Groupie


Joined: 15 April 2005
Status: Offline
Points: 171
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffdaro Quote  Post ReplyReply Direct Link To This Post Topic: Number of Views Wron at First?
    Posted: 15 December 2005 at 11:42pm
We have a problem with the number of views reported on our forums. If you post a new post, the number of views seems to increment by 2-3 for each view until the number of views crests 10. Then it increments by 1.

Anyone else seen this?
Back to Top
vitor ferreira View Drop Down
Newbie
Newbie


Joined: 18 November 2005
Location: Portugal
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote vitor ferreira Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2005 at 3:47pm
yes, i detected the same problem.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2005 at 3:57pm
Not sure how this can happen as the code runs in a procedule way; when the page is loaded it reads in the total views, adds 1 to it, then saves it back to the database again.

The only way it would go up faster is if others are looking at the page or you are hitting refresh.
Back to Top
jeffdaro View Drop Down
Groupie
Groupie


Joined: 15 April 2005
Status: Offline
Points: 171
Post Options Post Options   Thanks (0) Thanks(0)   Quote jeffdaro Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2005 at 4:47am
We've tested on a number of occassions, and it appears to be a valid issue. I guess it's possible a crawler is hitting my site, and causing the problem, but it is too re-produceable for me to chalk it up to chance. Looking at the code briefly, I agree it doesn't make sense, but it is happening.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2005 at 12:08pm
It could be somthing to do with firewall and/or proxy servers you maybe using.

Something like these maybe sending mutiple requests to the server thus coursing the web server to call the file mutiple times, each time running the file so the view number is incremented.

Again your log files may help here.

Try posting a new post, and if it increments by more than 1 have a look in your sites log files to see if mutiple requests are sent to the server for that page.


Edited by -boRg- - 22 December 2005 at 12:09pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.