Thanks - memcached was not installed correctly. So it was defaulting back to file caching? I didn't realize you can cache an individual variable with file caching like that. With no load on the server, it was just as fast.
On Jul 26, 12:04 pm, "euromark (munich)" <dereurom...@googlemail.com> wrote: > i thought so > > with > apt-get install php5-memcache > > + editing of php.ini > > BUT i found a typo > extension=memcached.so (/etc/php5/apache2/php.ini) > should be > extension=memcache.so (/etc/php5/apache2/php.ini) > > then it works just fine: > > "The MemcacheEngine is being used for caching. To change the config > edit APP/config/core.php " > > On 26 Jul., 17:05, brian <bally.z...@gmail.com> wrote: > > > > > On Sun, Jul 26, 2009 at 7:48 AM, euromark > > > (munich)<dereurom...@googlemail.com> wrote: > > > > i doubt that your memcache is working^^ > > > actually, it falls back to "file caching" if memcache cannot be used: > > > > trigger_error('Cache not configured properly. Please check > > > Cache::config(); in APP/config/core.php', E_USER_WARNING); > > > $cache = Cache::config('default', array('engine' => 'File')); > > > > you can see that if you check out the default "home" page (home.ctp in > > > cake) > > > > anyway.. in my case the problem seems to be that there is no > > > "Memcache" class > > > > $memcache = new Memcache; $memcache->addServer('xxx.xx.xx.xx', 11211); > > > $version = $memcache->getVersion(); print_r($memcache->getExtendedStats > > > ()); $cacheKey = $memcache->get("cake_homepage"); echo($cacheKey); > > > echo "<br>Server's version: ".$version."<br/>\n"; > > > > returns > > > > Fatal error: Class 'Memcache' not found in /home/web/test/comm/views/ > > > pages/homes.ctp on line 2 > > > > any idea whats missing here? > > > thx, mark > > > memcached? Is it installed?http://www.danga.com/memcached/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---