I just installed memcache for one of my apps and attempted to
configure Cake to use it. When I changed "default" from File to
Memcache, everything missed. I went from 0 to 300+ misses per request.
I tried both of the following configs with the same result.

Cache::config('default', array('engine' => 'Memcache'));

Cache::config('default', array(
        'engine' => 'Memcache',
        'duration' => 3600,
        'probability' => 100,
        'prefix' => 'sc2_',
        'servers' => array('127.0.0.1:11211'),
        'compress' => true
));

HOWEVER, when I created a custom config called "sql" that I use to
cache all my database queries, that worked. I hit rate was about 75%
compared to the "default" config. Both settings are exactly the same,
but default never hits.

Cache::config('default', array(
        'engine' => 'Memcache',
        'duration' => 3600,
        'probability' => 100,
        'prefix' => 'sc2_',
        'servers' => array('127.0.0.1:11211'),
        'compress' => true
));

Cache::config('sql', array(
        'engine' => 'Memcache',
        'duration' => 3600,
        'probability' => 100,
        'prefix' => 'sc2_sql_',
        'servers' => array('127.0.0.1:11211'),
        'compress' => false
));

I am really lost on this one. Any ideas?

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