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 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

Reply via email to