vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Home Enhancements - Site Life Status for vB 4 (https://vborg.vbsupport.ru/showthread.php?t=243731)

Boofo 04-14-2011 12:24 PM

All it does is read the counter from the datastore in the vb db. Make sure the datastore has the counter on the server that doesn't show it.

Alan_SP 04-14-2011 01:56 PM

I just found out that turning off xcache, i.e. not using xcache for datastore solved problem.

Any idea how to set this up to work with xcache and it's datastore?

EDIT: further info: I removed datastore prefix and it works ok now. I think you should try to include datastore prefix somehow.

This is the line in config.php I commented out:

// $config['Datastore']['prefix'] = 'forum_';

With this enabled, it doesn't work. It's not too big a problem for me, but there could be people who would use Xcache for more than vBulletin. So it works with xCache, but not when datastore prefix is used.

Alan_SP 04-14-2011 02:14 PM

And as a feature request, is it possible to program this mod to work with real usage statistics? What I mean is, I just supposed I had 8 millions hits so far, but it's not precise. Can you make it to use two counters, one from the installation, that counts actual page hits and one that's just sum of actual and the supposed page hits till now?

This way we would have better site statistics.

Also, if you go that way, if there could be way to reset page hits and while reseting them, giving this offset counter value of total hits till reset, so we could benchmark actual site usage in various periods, but retaining total page hits.

Or using altogether two counters, one real, from installation and one with installation plus offset?

Boofo 04-14-2011 02:35 PM

Quote:

Originally Posted by Alan_SP (Post 2184583)
I just found out that turning off xcache, i.e. not using xcache for datastore solved problem.

Any idea how to set this up to work with xcache and it's datastore?

EDIT: further info: I removed datastore prefix and it works ok now. I think you should try to include datastore prefix somehow.

This is the line in config.php I commented out:

// $config['Datastore']['prefix'] = 'forum_';

With this enabled, it doesn't work. It's not too big a problem for me, but there could be people who would use Xcache for more than vBulletin. So it works with xCache, but not when datastore prefix is used.

I used to have xcache enabled on my server and this worked just fine with it. I didn't use a prefix for the datacache, and to be honest, you are the only one who has ever reported that. So I don't really see a need for the prefix.

Boofo 04-14-2011 02:37 PM

Quote:

Originally Posted by Alan_SP (Post 2184586)
And as a feature request, is it possible to program this mod to work with real usage statistics? What I mean is, I just supposed I had 8 millions hits so far, but it's not precise. Can you make it to use two counters, one from the installation, that counts actual page hits and one that's just sum of actual and the supposed page hits till now?

This way we would have better site statistics.

Also, if you go that way, if there could be way to reset page hits and while reseting them, giving this offset counter value of total hits till reset, so we could benchmark actual site usage in various periods, but retaining total page hits.

Or using altogether two counters, one real, from installation and one with installation plus offset?

That is more than I want to invest in a free mod, since I would not use it.

Alan_SP 04-14-2011 03:51 PM

Quote:

Originally Posted by Boofo (Post 2184596)
I used to have xcache enabled on my server and this worked just fine with it. I didn't use a prefix for the datacache, and to be honest, you are the only one who has ever reported that. So I don't really see a need for the prefix.

I just realized, I needed to disable xcache for datastore. If xcache was enabled, counter remained static, not updating at all. I'm modifying gc interval, maybe it would solve this problem.

What are your var.ttl, var.maxttl i gc_interval settings?

EDIT: No luck, xcache datastore needs to be disabled for your mod to work, at least page hits part. :( Is it possible to put somehow counter outside of xcache datastore?

Boofo 04-14-2011 04:17 PM

Thew counter does NOT remain static. It updates the counter in the datastore on every page refresh. The xcache will update the counter when it updates the cache. I don't use any server caching anymore. I don't have enough users to warrant using it right now.

Alan_SP 04-14-2011 06:13 PM

Well, for some reason it doesn't work for me when I cache datastore in xcache. Only without caching counter gets updated.

At the moment I don't need to cache datastore, so I can use it, but later I hope that I'll need caching. :)

Boofo 04-14-2011 09:33 PM

Quote:

Originally Posted by Alan_SP (Post 2184687)
Well, for some reason it doesn't work for me when I cache datastore in xcache. Only without caching counter gets updated.

At the moment I don't need to cache datastore, so I can use it, but later I hope that I'll need caching. :)

It DOES work when you have xcache enabled. It just doesn't update the counter on the forumhome until the cache gets updated. The counter is being updated on every page refresh in the datastore, and if you will check the datastore, you will see that. None of your counters will update any more than this one will when you are using a server cache. You're not understanding how caching works.

Garamond 04-14-2011 10:08 PM

vB4? It just sucks. Most serious admins are still using 3.8.x

When is a version ready for that?


All times are GMT. The time now is 05:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01595 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete