vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Board Optimization - datastore cache to XCache - boost your vBulletin (https://vborg.vbsupport.ru/showthread.php?t=141005)

phpxcache 07-01-2007 12:08 AM

Quote:

Originally Posted by Yellow Slider (Post 1279944)
Can you explain how?, I'll installed the Xcache hack, and It will Cache the php files?, can someone explain what do you mean by "datastore"?

how can I work with memcache and Xcache to get the most out of the two of them?
memcache will cache the DB ( how exactly ? ) there is another hack?
and the Xcache will cache the php time? and the php process time will be faster?

u need no hack but just install XCache extension to cache php.

this hack/addon just allow you cache datastore to XCache beside memcached/file/apc/...
so if you wanna use memcache for DB/datastore, just install XCache extension but not this hack.

the meaning of "datastore" is defined by vbulletin, not me. it's simply a DB cache, nothing more, nothing less.

Yellow Slider 07-01-2007 12:15 PM

Quote:

Originally Posted by phpxcache (Post 1280246)
u need no hack but just install XCache extension to cache php.

this hack/addon just allow you cache datastore to XCache beside memcached/file/apc/...
so if you wanna use memcache for DB/datastore, just install XCache extension but not this hack.

the meaning of "datastore" is defined by vbulletin, not me. it's simply a DB cache, nothing more, nothing less.

Can i use this modification (off course with Xcache installed ) and to work with Memcache at the same time?
beside of that, What do you think will do the work better Xcache with this hack or Memcache?
Are they doing the same things?

There is DC caching and PHP caching, What do I use Memcache for?

phpxcache 07-01-2007 12:39 PM

XCache datastore is same as file/apc/memcached data sore, u just pick one of them.
1. use XCache for php caching, and/or:
2. use of and ONLY one of "ea/file/apc/memcached/XCache" for datastore caching,
u can't do Xcache_datastore + memcached_datastore or anther combination, but you can
xcache_php_caching + xcache_datastore
or xcache_php_caching + memcached_datastore
or xcache_php_caching + file_datastore etc

"ea/file/apc/memcached" is officially supported by vBulletin, this hack only add and XCache optional choice for you.

rootnik 07-01-2007 06:27 PM

What is the lowest I should set my var.cache size?

Would it be foolish to set it to something as low a 4M? I ask because after running it for about an hour I only used around 2mb of the cache and it was showing no signs of maxing out.

Paul M 07-01-2007 06:37 PM

4M is plenty if you are only using it for vbulletin (I only have mine set to 2M).

Yellow Slider 07-02-2007 01:54 PM

Quote:

Originally Posted by phpxcache (Post 1280560)
XCache datastore is same as file/apc/memcached data sore, u just pick one of them.
1. use XCache for php caching, and/or:
2. use of and ONLY one of "ea/file/apc/memcached/XCache" for datastore caching,
u can't do Xcache_datastore + memcached_datastore or anther combination, but you can
xcache_php_caching + xcache_datastore
or xcache_php_caching + memcached_datastore
or xcache_php_caching + file_datastore etc

"ea/file/apc/memcached" is officially supported by vBulletin, this hack only add and XCache optional choice for you.

And this modification is caching php or datastore?
Are you planning to release a modification that will work with Xcache / memcache and will cache php too?

Thanks a lot.

TECK 07-02-2007 06:51 PM

Quote:

Originally Posted by gabrielt (Post 1271351)
I am running memcached here. Can I use both or they are mutual exclusive? Anyone made performance tests comparing the two?

Thanks
Gabriel.

If you want real performance, yes use both of them, but do not enable xcache in config.php file.
More exacly, use memcached for datastore and XCache for the php files.
I built my own rpms, optimized for lighty and vbulletin. Please dont ask me anything if you use Crapache. :)

Yellow Slider 07-03-2007 02:40 PM

I have installed this modification, and nothing is changed..
how can I Be 100% that this modification is doing some thing? :\
Maybe I havn't installed it property , but there isn't anything to do, upload a file and to add a line in the config file..

what may be wrong?

config file -
PHP Code:

    // Here you can configure different methods for caching datastore items.
    // vB_Datastore_Filecache  - for using a cache file
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
$config['Datastore']['class'] = 'vB_Datastore_XCache'
    
// vB_Datastore_Memcached - for using a Memcache server
    // It is also necessary to specify the hostname or IP address and the port the server is listening on
//$config['Datastore']['class'] = 'vB_Datastore_Memcached';
//$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]        = '127.0.0.3';
$config['Misc']['memcacheport'][$i]            = 11211;
$config['Misc']['memcachepersistent'][$i]    = true;
$config['Misc']['memcacheweight'][$i]        = 1;
$config['Misc']['memcachetimeout'][$i]        = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15

class_datastore -

PHP Code:

        }
        return 
true;
    }
}
// add class_datastore_xcache, enable it in config.php
require_once(DIR '/includes/class_datastore_xcache.php'); 

/*======================================================================*\
|| #################################################################### 

I've uploaded the class_datastore_xcache.php to /includes/class_datastore_xcache.php

rootnik 07-04-2007 01:11 AM

Quote:

Originally Posted by Yellow Slider (Post 1281979)
I have installed this modification, and nothing is changed..
how can I Be 100% that this modification is doing some thing? :\
Maybe I havn't installed it property , but there isn't anything to do, upload a file and to add a line in the config file..

what may be wrong?

config file -
PHP Code:

    // Here you can configure different methods for caching datastore items.
    // vB_Datastore_Filecache  - for using a cache file
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';
$config['Datastore']['class'] = 'vB_Datastore_XCache'
    
// vB_Datastore_Memcached - for using a Memcache server
    // It is also necessary to specify the hostname or IP address and the port the server is listening on
//$config['Datastore']['class'] = 'vB_Datastore_Memcached';
//$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]        = '127.0.0.3';
$config['Misc']['memcacheport'][$i]            = 11211;
$config['Misc']['memcachepersistent'][$i]    = true;
$config['Misc']['memcacheweight'][$i]        = 1;
$config['Misc']['memcachetimeout'][$i]        = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15

class_datastore -

PHP Code:

        }
        return 
true;
    }
}
// add class_datastore_xcache, enable it in config.php
require_once(DIR '/includes/class_datastore_xcache.php'); 

/*======================================================================*\
|| #################################################################### 

I've uploaded the class_datastore_xcache.php to /includes/class_datastore_xcache.php

I'm pretty sure you will want to comment out the $config['Misc']['memcache* lines if you want to switch to xcache.

Yellow Slider 07-04-2007 08:29 AM

I've done it after posting here, and still there in no change..
how can i check and see if the modification actually works?

View the Attachments file maybe it will give you some clue, I've installed the cache templates modification as well..


All times are GMT. The time now is 06: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.01341 seconds
  • Memory Usage 1,781KB
  • 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_php_printable
  • (5)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