developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #1047: memcached.diff

File memcached.diff, 1.7 KB (added by samtahRam, 12 years ago)

changes made in the plugin file and the config template file

  • lib/jelix-scripts/templates/var/config/cache.ini.php.tpl

    diff -r 56540eccdf97 lib/jelix-scripts/templates/var/config/cache.ini.php.tpl
    a b  
    5454
    5555; Memcached servers.
    5656; Can be a list e.g
    57 ;servers = memcache_host1:11211;memcache_host2:11211;memcache_host3:11211 i.e HOST_NAME:PORT
     57;servers = memcache_host1:11211,memcache_host2:11211,memcache_host3:11211 i.e HOST_NAME:PORT
    5858;servers =
  • lib/jelix/plugins/cache/memcached/memcached.cache.php

    diff -r 56540eccdf97 lib/jelix/plugins/cache/memcached/memcached.cache.php
    a b  
    44* @subpackage plugins_cache_memcached
    55* @author     Tahina Ramaroson
    66* @contributor Sylvain de Vathaire
    7 * @copyright  2009 Neov
     7* @copyright  2009 Neov, 2010 Neov
     8*
     9* Fix bugs when many servers set in the config file
     10*
     11* @link     http://www.jelix.org
    812* @licence  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file
    913*/
    1014
     
    7175            throw new jException('jelix~cache.error.memcache.extension.missing',array($this->profil_name, $e->getMessage()));
    7276        }
    7377
    74         if(isset($param['servers'])){
     78        if(isset($params['servers'])){
    7579            $this->_servers = $params['servers'];
    7680        }
    7781
    78         $servers = explode(';',$this->_servers );
     82        $servers = explode(',',$this->_servers );
    7983        $fails = 0;
    8084        for ($i = 0; $i<count($servers); $i++) {
    8185            list($server,$port) = explode(':', $servers[$i]);