The configuration that I send allows you to use memcached (or whatever you like) for all caches but the internal cake's cache (that should use file)
I have this configuration in a prod environment (using several memcached servers) and it works fine. Regards, Pablo Viojo [email protected] http://pviojo.net ¿Que necesitas? http://www.needish.com On Tue, Feb 16, 2010 at 6:20 PM, Kareem Sabri <[email protected]> wrote: > Thanks for your reply Pablo. > > I'm able to use CakePHP's File Engine for cacheing, however this has > numerous drawbacks when compared to memcached: > > I don't cache view files, because all of my pages require the > controller to run and usually a database query as well, so I cache > database queries. > > Cacheing database queries in CakePHP's file form doesn't really help > my performance significantly, due to the fact that my database server > is significantly more powerful than my web server and seek times are > very low and my tables/queries have been optimized to allow mySQL to > only have to look to one row for most queries. The big benefit comes > from memcached storing the results in a chunk of memory that it owns, > which CakePHP's default cacheing can't do. > > So, it's very important to me to get memcached working with Cake, and > I expect it must be the same case for others. > > On Feb 12, 1:17 pm, Pablo Viojo <[email protected]> wrote: > > I was having issues using memcached for cake internal cache and memcached > > has a maximum size for each stored object (1 MB) so I prefer to use File > for > > the internal cache. I defined > > > > Cache::config('_cake_core_', array('engine' => 'File')); > > Cache::config('_cake_model_', array('engine' => 'File')); > > > > before > > > > Cache::config('default', ... > > > > If you do this, remember to check if app/tmp/cache/models > > app/tmp/cache/persistent and app/tmp/cache/views exists and has > read/write > > privileges > > > > Regards > > > > Pablo Viojo > > [email protected]http://pviojo.net > > > > ¿Que necesitas?http://www.needish.com > > > > > > > > On Fri, Feb 12, 2010 at 3:08 PM, Kareem Sabri <[email protected]> > wrote: > > > Thanks for the tip. However, that didn't solve the issue. > > > > > Any other advice? > > > > > On Feb 12, 5:55 am, majna <[email protected]> wrote: > > > > Example: > > > > > > Cache::config('default', array( > > > > 'engine' => 'Memcache', //[required] > > > > 'duration'=> 30, //[optional] > > > > 'servers' => array('192.168.1.11:11211 '), > > > > 'compress' => false, > > > > )); > > > > > > use your server IP > > > > > > On Feb 11, 11:43 pm, Kareem Sabri <[email protected]> wrote: > > > > > > > Hello, > > > > > > > Hopefully someone can help me out here. > > > > > > > I have installed Memcached and all its dependencies. I have > verified > > > > > it is running correctly and I can connect via port 11211 (in > command > > > > > line, not with cake) > > > > > > > My core.config is the default: > > > > > > > Cache::config('default', > > > > > array( > > > > > 'engine' => 'Memcache', > > > > > 'duration' => 30 > > > > > ) > > > > > ); > > > > > > > I am running on a Linux box, no issues with Windows I saw on some > > > > > other threads. And I haven't modified the default directory > structure > > > > > at all, everything is currently in my public_html directory. > > > > > > > However, I get: Warning (512): Cache not configured properly. > Please > > > > > check Cache::config(); in APP/config/core.php [CORE/cake/libs/ > > > > > configure.php, line 663] and Cake falls back to using the > FileEngine > > > > > for Cacheing. > > > > > > > Any help would be greatly appreciated, thanks. > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help > others > > > with their CakePHP related questions. > > > > > You received this message because you are subscribed to the Google > Groups > > > "CakePHP" group. > > > To post to this group, send email to [email protected] > > > To unsubscribe from this group, send email to > > > [email protected]<cake-php%[email protected]> > <cake-php%[email protected] om>For more options, visit this > group at > > >http://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
