Status
Not open for further replies.

Nirjonadda

Customer
I have both memcached and xcache installed. Can you use both memcached and xcached? If yes than how to Edit the configuration file for config.php?

Currently i am using xcache with vB Optimise, now how to use for config.php in memcached?

I would suspect the settings in config.php would look like:

Code:
//$config['Datastore']['class'] = 'vB_Datastore_XCache';
$i = 0;
// First Server
/*
$i++;
$config['Misc']['memcacheserver'][$i]		= '127.0.0.1';
$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;
*/

Is the vB Optimise still is in Beta Stage ?
 
It's not possible vB Optimise, Opcache Operator use xcache ?

vB Optimise > Opcache Operator > XCache ?

vB config.php use memcached ?

Code:
//$config['Datastore']['class'] = 'vB_Datastore_memcached';
$i = 0;
// First Server

$i++;
$config['Misc']['memcacheserver'][$i]		= '127.0.0.1';
$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;
 
This is not something we have tested and could produce unexpected results. You're free to try it, although I would strongly recommend not running Memcached as it is designed for a multi-machine environment.
 
Is this edit is the correct in config.php for work with vB Optimise?

Code:
 // ****** DATASTORE CACHE CONFIGURATION *****
 // Here you can configure different methods for caching datastore items.
 // vB_Datastore_Filecache  - to use includes/datastore/datastore_cache.php
 // vB_Datastore_APC - to use APC
 // vB_Datastore_XCache - to use XCache
 // vB_Datastore_Memcached - to use a Memcache server, more configuration below
[COLOR="#FF0000"]$config['Datastore']['class'] = 'vB_Datastore_XCache';[/COLOR]
 // It is also necessary to specify the hostname or IP address and the port the server is listening on
/*
[COLOR="#008000"]$config['Datastore']['class'] = 'vB_Datastore_Memcached';[/COLOR]
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]  = '127.0.0.1';
$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;
*/

I enable the line in red , the green line , is it Ok also togather when the red is enable?
 
The correct config would be
PHP:
 // ****** DATASTORE CACHE CONFIGURATION *****
 // Here you can configure different methods for caching datastore items.
 // vB_Datastore_Filecache  - to use includes/datastore/datastore_cache.php
 // vB_Datastore_APC - to use APC
 // vB_Datastore_XCache - to use XCache
 // vB_Datastore_Memcached - to use a Memcache server, more configuration below
//$config['Datastore']['class'] = 'vB_Datastore_XCache';
 // 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.1';
$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;

Again, I would advise against running Memcache as it will negatively impact performance on a single-server setup vs. using only XCache. Memcache is designed to be run on a dedicated "db server" machine that handles cache storage. Such servers usually have a lot of RAM and very fast HDDs/SSDs.
 
Please one more question, If i use only XCache with vB Optimise, is the correct in config.php ?

Code:
 // ****** DATASTORE CACHE CONFIGURATION *****
 // Here you can configure different methods for caching datastore items.
 // vB_Datastore_Filecache  - to use includes/datastore/datastore_cache.php
 // vB_Datastore_APC - to use APC
 // vB_Datastore_XCache - to use XCache
 // vB_Datastore_Memcached - to use a Memcache server, more configuration below
$config['Datastore']['class'] = 'vB_Datastore_XCache';
 // 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.1';
$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;
*/
 
If you're only using XCache in vBO, then you do not need to modify config.php at all.
 
Status
Not open for further replies.

Similar threads

Legacy vB Optimise

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,977
Customer rating
0.00 star(s) 0 ratings
Back
Top