The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Can I run Memcached for multi vB forums on a same server hosting?
I installed memcached on my hosting but it's running good for a forum.
When I activated memcached to enable for vB forums on a server then it worked incorrectly, then forums are using a same database from one forum hence I only can use memcached for 1 forum. Here's codes that I enabled them in config.php for forums 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; Please advise. Thanks |
#2
|
|||
|
|||
Use different prefixes Right above the lines you posted:
Code:
// ******** DATASTORE PREFIX ****** // If you are using a PHP Caching system (APC, XCache, eAccelerator) with more // than one set of forums installed on your host, you *may* need to use a prefix // so that they do not try to use the same variable within the cache. // This works in a similar manner to the database table prefix. // $config['Datastore']['prefix'] = ''; |
Благодарность от: | ||
Mattwhf |
#3
|
|||
|
|||
Thanks for your answer!
I can use whatever prefix I want, like this Code:
$config['Datastore']['prefix'] = 'forum1'; Code:
$config['Datastore']['prefix'] = 'forum2'; and just curious, where can I see these prefix? in memcached or in databases? |
#4
|
|||
|
|||
I would put something after the prefix like _ You can install an admin page phpMemcachedAdmin. That should show you everything that is happening.
|
#5
|
|||
|
|||
Quote:
It's a great tool to use with user friendly interface. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|