Thread: Forum Home Enhancements - Site Life Status for vB 4
View Single Post
  #185  
Old 01-17-2011, 06:40 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TosaInu View Post
The cache is a blessing, but sometimes it makes pull your hair.

I don't know how long it takes to update the cache, I'm still seeing zeros.

But on the testboard it's not running a cache:

Average visits to this page
Hourly 0.00 Daily 0.01 Weekly 0.05 Monthly 0.22 Yearly 2.63

Isn't that displaying it the wrong way? I expect hourly views to rise faster than yearly views?

Hmm, I'm putting it wrong. Those are totals/averages for a hour-year right? When I do a fresh install with all counters set to zero, I guess I would see the hourly counter to go up first. ... erm... is it because our site is over 11 years old already with all old average data being 0? I can see hourly visits stay at 0 then, there will be loads of 0 visit hours in 11 years.

Edit: I set it to yesterdays date, reset the counter to 0 and did a few page refreshes
Average visits to this page
Hourly 0.25 Daily 6.05 Weekly 42.33 Monthly 183.93 Yearly 2,207.15

It doesn't make much sense to me? Shed some light on this please?


It's going to be query intensive I guess (though you can probably go around that with a cron that updates it once an hour). There would be 5 fields: one for an hourly counter and that gets life update. A field for day, week, month, year. After each hour the cron adds the hour value to the day value and the hour is reset to 0. After 24 hours the data from day is copied to week and resets to 0. And so on. That makes it totals and not averages.
You haven't set the hits counter yet. Look at your settings. The averages are working properly.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01066 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete