Re: Memcached not working on "default" settings

2010-09-22 Thread Miles J
My friend brought to my attention that the system time and the PHP
time may not be the same. So if I am setting something using PHP time
and the system time is 8 hours ahead, it could automatically be
expiring when being set.

I have yet to test this theory but I will let you know what I find.

On Sep 21, 3:31 pm, Miles J  wrote:
> -w keeps saying that memcache is doing a get before each set, so it
> keeps throwing a miss.
>
> On Sep 21, 3:05 pm, Andy Gale  wrote:
>
> > On Tue, Sep 21, 2010 at 4:02 PM, j.blotus  wrote:
> > > I recently set up memcached as well, it's too bad that it doesn't give
> > > you a great idea of how things are working behind the scenes.
>
> > Run memcached with the -vv option and it will tell you exactly what's going 
> > on.
>
> > --
> > Andy Galehttp://andy-gale.comhttp://twitter.com/andygale

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


Re: Memcached not working on "default" settings

2010-09-21 Thread Miles J
-w keeps saying that memcache is doing a get before each set, so it
keeps throwing a miss.

On Sep 21, 3:05 pm, Andy Gale  wrote:
> On Tue, Sep 21, 2010 at 4:02 PM, j.blotus  wrote:
> > I recently set up memcached as well, it's too bad that it doesn't give
> > you a great idea of how things are working behind the scenes.
>
> Run memcached with the -vv option and it will tell you exactly what's going 
> on.
>
> --
> Andy Galehttp://andy-gale.comhttp://twitter.com/andygale

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


Re: Memcached not working on "default" settings

2010-09-21 Thread Andy Gale
On Tue, Sep 21, 2010 at 4:02 PM, j.blotus  wrote:
> I recently set up memcached as well, it's too bad that it doesn't give
> you a great idea of how things are working behind the scenes.

Run memcached with the -vv option and it will tell you exactly what's going on.

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

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


Re: Memcached not working on "default" settings

2010-09-21 Thread j.blotus
I use a mix of both honestly, file cache for more long term stuff and
memcache for things that require a shorter lifespan

On Sep 21, 1:08 pm, Miles J  wrote:
> I still have not gotten this to work. Im thinking of just setting
> default to file system cache and everything else to memcache.
>
> On Sep 21, 8:02 am, "j.blotus"  wrote:
>
>
>
> > I recently set up memcached as well, it's too bad that it doesn't give
> > you a great idea of how things are working behind the scenes.
>
> > On Sep 21, 1:27 am, Miles J  wrote:
>
> > > 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 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


Re: Memcached not working on "default" settings

2010-09-21 Thread Miles J
I still have not gotten this to work. Im thinking of just setting
default to file system cache and everything else to memcache.

On Sep 21, 8:02 am, "j.blotus"  wrote:
> I recently set up memcached as well, it's too bad that it doesn't give
> you a great idea of how things are working behind the scenes.
>
> On Sep 21, 1:27 am, Miles J  wrote:
>
> > 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 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


Re: Memcached not working on "default" settings

2010-09-21 Thread j.blotus
I recently set up memcached as well, it's too bad that it doesn't give
you a great idea of how things are working behind the scenes.

On Sep 21, 1:27 am, Miles J  wrote:
> 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 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


Memcached not working on "default" settings

2010-09-20 Thread Miles J
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 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