caching - CakePHP Custom CacheEngine and shell problems -
caching - CakePHP Custom CacheEngine and shell problems -
i wrote own cacheengine memcached that's extension have installed on server , not memcache, can't utilize default memcache engine.
now engine working fine when visiting website, however. when seek start shell sorts of cache::config errors, don't see when visiting site.
php warning: cache not configured properly. please check cache::config(); in app/config/core.php in /home/ezra/sites/example.nl/cake/libs/configure.php on line 402 warning: cache not configured properly. please check cache::config(); in app/config/core.php in /home/ezra/sites/example.nl/cake/libs/configure.php on line 402 php notice: undefined index: prefix in /home/ezra/sites/example.nl/cake/libs/configure.php on line 410 notice: undefined index: prefix in /home/ezra/sites/example.nl/cake/libs/configure.php on line 410 php warning: /persistent/ not writable in /home/ezra/sites/example.nl/cake/libs/cache/file.php on line 267 warning: /persistent/ not writable in /home/ezra/sites/example.nl/cake/libs/cache/file.php on line 267 php warning: /models/ not writable in /home/ezra/sites/example.nl/cake/libs/cache/file.php on line 267 warning: /models/ not writable in /home/ezra/sites/example.nl/cake/libs/cache/file.php on line 267 welcome cakephp v1.3.10 console
and cache::config in core.php
/* memcached (http://www.danga.com/memcached/) */ cache::config('default', array( 'engine' => 'memcached', //[required] 'duration'=> 3600, //[optional] 'probability'=> 100, //[optional] 'prefix' => 'smm_', //[optional] prefix every cache file string 'servers' => array( array('127.0.0.1', 11211), // localhost, default port 11211 ), //[optional] 'compress' => true, // [optional] compress info in memcache (slower, uses less memory) 'persistent' => false, // [optional] set false non-persistent connections ));
are there bugs shells , custom cacheengines or did mess up?
tia
found problem.
i had different php.ini cli, in php.ini forgot load memcached.so.
after adding php.ini worked fine!
shell caching cakephp memcached command-line-interface
Comments
Post a Comment