1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

How is the number of views calculated?

Discussion in 'Showcase Support' started by vicki, Apr 5, 2013.

  1. vicki

    vicki New Member AMS Premium Showcase Sportsbook

    Hi Bob, just a small question...

    I'm wondering how the number of views for each item in Showcase Home Page is calculated? Is it each view count coming from a unique username or ip or something else...?
     
  2. Bob

    Bob Developer Staff Member

    Works the same as core XF. A "View" is recorded for each successful rendering of a thread/page/item/event etc. So in other words, if you went to a thread or showcase item and hit refresh 10 times, that is 10 views. There is nothing complex about it at all. It is in no way even close to being the same concept as Web Analytics.
     
  3. vicki

    vicki New Member AMS Premium Showcase Sportsbook

    Thanks Bob. I somehow can't get this logical view cnt in reality... so I just tried to go to item 'Rectangle Acrylic Aquarium 300 Gallons' on this site, and refreshed it 5 times - I didn't see the # of views change for the item. It simply stayed as 84 views for me...
     
  4. Bob

    Bob Developer Staff Member

    Just like Core Xenforo, Views are not updated the exact second the page is accessed. Each "view" is logged and then at a set period of time, a CRON runs that updated the view counts for each item. Its done this way to cut down on the massive amounts of queries that would run to update each and every view as they happen.

    The CRON for showcase view updates runs every hour at 30 minutes past the hour. You can change this to a different update interval by editing the CRON.

    Admin CP >> Tools >> Cron Entries
    Edit >> Showcase: Update Item Views
    Change >> Run at minutes from 30 to what ever you want.

    NOTE: if you want it to run every 15 minutes, you need to hold the CTRL key down and select 0, 15, 30, 45
     
    MattW and vicki like this.
  5. vicki

    vicki New Member AMS Premium Showcase Sportsbook

    Thanks Bob for the detailed explanation, again!:)
     
    Bob likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.