Announcement

Collapse
No announcement yet.

MemCache

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jake Bunce
    replied
    It looks like the file was edited incorrectly. We can take a look if you copy and paste the contents of your config file into a trouble ticket:

    http://members.vbulletin.com/members...ontactform.php

    Be sure to reference this thread.

    Leave a comment:


  • aseer
    replied
    when i removed the */ and /*

    i got this error ( Parse error: syntax error, unexpected T_DNUMBER in /home/a*****/public_html/includes/config.php on line 168 )

    Leave a comment:


  • Jake Bunce
    replied
    Just uncomment that block by removing the red:

    Code:
    [color=red]/*[/color]
    $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;
    [color=red]*/[/color]

    Leave a comment:


  • aseer
    replied
    and also leave the $config['Datastore']['class'] = 'vB_Datastore_Memcached';
    $i = 0; ?

    Leave a comment:


  • Jake Bunce
    replied
    You can probably leave those settings as default. 127.0.0.1 is the localhost. And your memcache server probably uses the default port unless you changed it.

    Leave a comment:


  • aseer
    replied
    I know .. but what to fill into server and ip if its on the same server with the forum ?

    Leave a comment:


  • Jake Bunce
    replied
    You need to enable it in the includes/config.php file:

    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_Filecache';
    
    	// ******** 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'] = '';
    
    	// 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;
    */

    Leave a comment:


  • aseer
    started a topic MemCache

    MemCache

    Hello

    I have server and i just installed memcache and compiled it with php .. how to enable it in config.php if i`m using one server only for both memcache and my forum?

Related Topics

Collapse

Working...
X