CakePHP Memcached CakePHP2.5.x -



CakePHP Memcached CakePHP2.5.x -

i have upgraded cakephp 2.5.x series , trying implement new memcached engine replaces memcache; getting following:

_cake_core_ cache unable write 'cake_dev_en-us' memcached cache in ... uncaught exception 'cacheexception' message ' not valid serializer engine memcached'

i have updated bootstrap.php , core.php right values. memcached working correctly on ubuntu 14.04 server using port 11211 on localhost (127.0.0.1). help appreciated

thanks

this because in config/core.php, next 'serialize' parameter set false if cache engine set "memcached", however, memcachedengine requires 'serialize' set among 'php','igbinary' , 'json'. may comment out "serialize" line, 'php' default value.

/** * configure cache used general framework caching. path information, * object listings, , translation cache files stored configuration. */ cache::config('_cake_core_', array( 'engine' => $engine, 'prefix' => $prefix . 'cake_core_', 'path' => cache . 'persistent' . ds, 'serialize' => ($engine === 'file'), 'duration' => $duration )); /** * configure cache model , datasource caches. cache configuration * used store schema descriptions, , table listings in connections. */ cache::config('_cake_model_', array( 'engine' => $engine, 'prefix' => $prefix . 'cake_model_', 'path' => cache . 'models' . ds, 'serialize' => ($engine === 'file'), 'duration' => $duration ));

cakephp memcached cakephp-2.5

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -