Work on memcached server

This commit is contained in:
Laurent Destailleur 2010-05-26 00:34:31 +00:00
parent 10f0b0997e
commit aac649f46b
3 changed files with 6 additions and 0 deletions

View File

@ -331,6 +331,7 @@ OtherInformationsBoxes=Other information boxes
DolibarrBoard=Dolibarr board
DolibarrStateBoard=Statistics
DolibarrWorkBoard=Work tasks board
Available=Available
NotYetAvailable=Not yet available
NotAvailable=Not available
Popularity=Popularity

View File

@ -329,6 +329,7 @@ OtherInformationsBoxes=Autres boîtes d'informations
DolibarrBoard=Tableau de bord
DolibarrStateBoard=Statistiques
DolibarrWorkBoard=Tableau de bord de travail
Available=Disponible
NotYetAvailable=Pas encore disponible
NotAvailable=Non disponible
Popularity=Popularité

View File

@ -48,6 +48,7 @@ function dol_setcache($memoryid,$data)
// Using a memcached server
if (! empty($conf->memcached->enabled) && class_exists('Memcached'))
{
$memoryid=session_name().'_'.$memoryid;
$m=new Memcached();
$result=$m->addServer($conf->global->MEMCACHED_SERVER, $conf->global->MEMCACHED_PORT);
//$m->setOption(Memcached::OPT_COMPRESSION, false);
@ -64,6 +65,7 @@ function dol_setcache($memoryid,$data)
}
else if (! empty($conf->memcached->enabled) && class_exists('Memcache'))
{
$memoryid=session_name().'_'.$memoryid;
$m=new Memcache();
$result=$m->addServer($conf->global->MEMCACHED_SERVER, $conf->global->MEMCACHED_PORT);
//$m->setOption(Memcached::OPT_COMPRESSION, false);
@ -98,6 +100,7 @@ function dol_getcache($memoryid)
// Using a memcached server
if (! empty($conf->memcached->enabled) && class_exists('Memcached'))
{
$memoryid=session_name().'_'.$memoryid;
$m=new Memcached();
$result=$m->addServer($conf->global->MEMCACHED_SERVER, $conf->global->MEMCACHED_PORT);
//$m->setOption(Memcached::OPT_COMPRESSION, false);
@ -116,6 +119,7 @@ function dol_getcache($memoryid)
}
else if (! empty($conf->memcached->enabled) && class_exists('Memcache'))
{
$memoryid=session_name().'_'.$memoryid;
$m=new Memcache();
$result=$m->addServer($conf->global->MEMCACHED_SERVER, $conf->global->MEMCACHED_PORT);
//$m->setOption(Memcached::OPT_COMPRESSION, false);