Re: Memcached delete issue?

2015-03-21 Thread Ronald Layanto
Ah sorry I forgot to mention, I also add the same config on Config/core.php on my backend app, so it should refer to the same cache On Saturday, March 21, 2015 at 10:49:17 PM UTC+7, Ronald Layanto wrote: > > Hi all, > > Sorry if my post is kinda stupid > I have an issue usi

Memcached delete issue?

2015-03-21 Thread Ronald Layanto
Hi all, Sorry if my post is kinda stupid I have an issue using Memcached in CakePHP 2.6.3 Currently I develop a simple website in my laptop, which already installed with Memcached The Memcached already installed properly, I already checked using phpinfo and there's no problem at all I als

Re: Memcached Pool

2013-03-11 Thread michaelf
ok, solved it myself. The error was actually being generated on a PHP level in from php-pecl-memcache. Turns out this library is less capable than php-pecl-memcache*d*, so using that rather. And now pooling is handled correctly. sorry for the noise, Michael -- Like Us on FaceBook https://ww

Memcached Pool

2013-03-11 Thread michaelf
Hi, I noticed that Cakephp gives an error message if one of the servers in a memcached pool is missing: For example, two server in a pool. One is up, the other down, gives this error, even though the one server in the pool is available. *Notice* (8): MemcachePool::get() [http://php.net

Re: Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

2012-08-10 Thread Ryan Willis
It was a write permissions error on the files and a storage error in Memcached. Oddly enough, I can no longer reproduce these. It must be a server level problem. Thanks for your response and I will update if I figure out what it was. Ryan On Thu, Aug 9, 2012 at 9:20 PM, Dr. Tarique Sani wrote

Re: Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

2012-08-09 Thread Dr. Tarique Sani
iguration of two load balanced web servers and two database servers > (master/slave). We are using CakePHP 2.2.1 on NginX and PHP-FPM with PHP > 5.4. We are noticing intermittent cache write failures despite having tried > both file based caching and memcached. For file based caching, ev

Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

2012-08-09 Thread Ryan Willis
tried both file based caching and memcached. For file based caching, even with permissions being 777 and the umask set to 777, a cache file cannot be overwritten once it is written. On the memcached side, the store failures follow the same pattern. Once it has been written, it cannot be overwritten

Memcached or Redis

2012-07-04 Thread baur79
Hi, i plan to implement data caching in my project, please suggest me, which to use Memcached or Redis (with simple comments) thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: CakePHP and Memcached

2012-03-02 Thread sixthpoint
memcached should have keys that expire, thus you wouldn't have to remove it. read this http://api20.cakephp.org/class/memcache-engine On Friday, March 2, 2012 3:14:58 AM UTC-6, Almog Koren wrote: > > I'm looking at adding Memcached to my application I understand there is >

CakePHP and Memcached

2012-03-02 Thread Almog Koren
I'm looking at adding Memcached to my application I understand there is already a built in option for this in CakePHP. I wanted to know if I'm still required to build a caching layer were I link the cache to a key that represents the data in the database. and when it comes time to

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-07 Thread José Lorenzo
Yes, your configuration looks fine. I would not advise using memcache for the _core_ cache configuration, it is better to use APC, although it will still work fine and fast with memcache. CakePHP does not cache find() calls, that is a task left for the developer. -- Our newest site for the com

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread Chris Cinelli
Thank you. Just to be sure... What I wrote here, is it the right way to set up cakephp to use memcached for sessions? Also if I set _core_ Cache to use memcached, is cakephp going to use memcache to cache the ->find calls? On Oct 6, 2011 8:41 PM, "José Lorenzo" wrote: > The

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread José Lorenzo
The bug was fixed in lastest commit in cakephp repo. Thanks a lot for reporting it. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To un

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread José Lorenzo
I can confirm this bug, I'll keep you posted -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread José Lorenzo
That looks like a very odd error. What version of php are you using? can you paste the complete core.php file in the cakephp bin? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread Chris Cinelli
I tried to set up sessions with memchaced and I am getting an error (plus sessions do not seem to work). I read : https://github.com/cakephp/docs/blob/master/en/development/sessions.rst It does not talk of session on memcached in specific but maybe adding it to the doc would be good ;-) I tested

Re: can't save cake_core files to memcached

2011-08-05 Thread Santiago Basulto
Thank you brother, i'm starting with memcached and cake and is really useful! On Aug 4, 9:19 am, Perry wrote: > I've found the solution > inhttp://www.pseudocoder.com/blog/8-ways-to-speed-up-cakephp-apps > > I need to add a '_cake_core_' cache con

Re: can't save cake_core files to memcached

2011-08-04 Thread Perry
it works fine. but when I > switch to memcached, I found all the cake_core files, such as > cake_core_file_map, can't be cached. > > I've deleted those files in app/tmp/cache/persistent and > app/tmp/cache/models, and it does not appear again, which means cake must b

can't save cake_core files to memcached

2011-08-04 Thread Perry
Hi all, I've enabled file cache in core.php, and it works fine. but when I switch to memcached, I found all the cake_core files, such as cake_core_file_map, can't be cached. I've deleted those files in app/tmp/cache/persistent and app/tmp/cache/models, and it does not appe

Re: CakePHP + memcached weird results

2011-01-14 Thread Adrian Arnautu
> Hi Andy and thank for reply, > > The memcached expiration time is clear, everything which exceeds 30 days > (in seconds 60*60*24*30 = 2592000) it is treated like an Unix time stamp. > > According to the memcached log I've got something like 'set > app_cake_model_def

Re: CakePHP + memcached weird results

2011-01-13 Thread Adrian Arnautu
Hi Andy and thank for reply, The memcached expiration time is clear, everything which exceeds 30 days (in seconds 60*60*24*30 = 2592000) it is treated like an Unix time stamp. According to the memcached log I've got something like 'set app_cake_model_default_aros_acos 1 86313600 699&

Re: CakePHP + memcached weird results

2011-01-13 Thread AD7six
couse, if I'll use the file > cache probably it will be rewritten each and every time, I haven't test > this. > So far I don't know why that subtraction is there, why it is needed the > differernce as a result if someone can illuminate me, please do. does "duration&qu

Re: CakePHP + memcached weird results

2011-01-13 Thread Adrian Arnautu
an On Wed, Jan 12, 2011 at 12:24 PM, Adrian Arnautu wrote: > Hi to all, > > I activated the Memcached default support with this config > Cache::config('default', array( > 'engine' => 'Memcache', &g

CakePHP + memcached weird results

2011-01-12 Thread Adrian Arnautu
Hi to all, I activated the Memcached default support with this config Cache::config('default', array( 'engine' => 'Memcache', 'duration'=> 9577829600, 'servers&

Re: use APC & Memcached at the same tim

2010-12-09 Thread pang
ection is because:  apc also provide > > the ability to cache variables, so if  we need to cache variable by > > apc, it requires code changes. > > > The question now is :  if I want to separate variable caching, like > > what facebook does:  cache local variables in apc, whil

Re: use APC & Memcached at the same tim

2010-12-09 Thread pang
changes. > > > The question now is :  if I want to separate variable caching, like > > what facebook does:  cache local variables in apc, while caching > > database query by memcached. how could this be done as both apc and > > memcached need to be configured and class &q

Re: use APC & Memcached at the same tim

2010-12-06 Thread Ma'moon
as a apc section is because: apc also provide > the ability to cache variables, so if we need to cache variable by > apc, it requires code changes. > > The question now is : if I want to separate variable caching, like > what facebook does: cache local variables in apc, while caching

Re: use APC & Memcached at the same tim

2010-12-06 Thread Miles J
need to cache variable by > apc, it requires code changes. > > The question now is :  if I want to separate variable caching, like > what facebook does:  cache local variables in apc, while caching > database query by memcached. how could this be done as both apc and > memcached need

Re: use APC & Memcached at the same tim

2010-12-06 Thread pang
what facebook does: cache local variables in apc, while caching database query by memcached. how could this be done as both apc and memcached need to be configured and class "Cache" is the only handler for cakephp cache? If I want to use both apc and memcache, does that mean I have t

Re: use APC & Memcached at the same tim

2010-12-06 Thread Ma'moon
h means > that it > > > > > caches the binary form of your PHP script and once this script is > being > > > > > called, the cached version of the script is the one that will be > > > > executed, > > > > > this will save a lot of performanc

Re: use APC & Memcached at the same tim

2010-12-06 Thread pang
ow how to do it? > > > > On Dec 3, 1:14 pm, "Ma'moon" wrote: > > > > APC performs (byte code caching or intermediate code) which means that > > > > it > > > > caches the binary form of your PHP script and once this script is being >

Re: use APC & Memcached at the same tim

2010-12-03 Thread Miles J
rm of your PHP script and once this script is being > > > called, the cached version of the script is the one that will be > > executed, > > > this will save a lot of performance and server resources, on the other > > hand, > > > memcached is being used to cache

Re: use APC & Memcached at the same tim

2010-12-03 Thread Ma'moon
e code) which means that it > > caches the binary form of your PHP script and once this script is being > > called, the cached version of the script is the one that will be > executed, > > this will save a lot of performance and server resources, on the other > hand,

Re: use APC & Memcached at the same tim

2010-12-03 Thread pang
s (byte code caching or intermediate code) which means that it > caches the binary form of your PHP script and once this script is being > called, the cached version of the script is the one that will be executed, > this will save a lot of performance and server resources, on the other hand, &g

Re: use APC & Memcached at the same tim

2010-12-03 Thread Ma'moon
, memcached is being used to cache objects of several forms, like caching the results of a database query "a model operation in CakePHP's case", an array, or someother forms of objects, you can use both of them for your application caching, each for its own task, take a look here t

use APC & Memcached at the same tim

2010-12-03 Thread pang
CakePHP offer both APC and Memcached cache engine for cache purpose, but each of them has different preferred usage, I am wondering is it possible to config Cake to work with both of them? and how can It be achieved? Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: Memcached not working on "default" settings

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

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 gre

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

Re: Memcached not working on "default" settings

2010-09-21 Thread j.blotus
> > 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: > &g

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 thi

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

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

Re: Memcached

2010-07-10 Thread Hugo M
Hey! I really could get my info from Memcached with the monitoring-tool created by Haron Yayli! Excellent tool! Thanks :), Memcached was really working. The problem was that I was asking somethimes for app_cake_model_default_users<http://localhost/memcache.php?&op=4&s

Re: Memcached

2010-07-10 Thread DragonI
Checkout memcached monitoring tool created by Harun Yayli - http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/ You'll have to change $MEMCACHE_SERVERS[] = 'mymemcache-server1:11211' to use your server settings On Jul 9, 10:05 pm, Hugo M wrote: > I'

Re: Memcached

2010-07-09 Thread iamcam (Cameron Perry)
Cache an item, assuming the cache is working, turn memcached off, then try to read it on the next request. That will tell you right away if memcache is working. On Jul 9, 7:05 pm, Hugo M wrote: > I've configured memcached as caching system in CakePHP, how can I test it? > Because I t

Memcached

2010-07-09 Thread Hugo M
I've configured memcached as caching system in CakePHP, how can I test it? Because I tried to get contents from the keys I put on the cache and the telnet console returns nothing. But the cache seems to be working ok. I put in the configuration prefix = '' and I search the keys in

Memcached troubles

2010-04-22 Thread Jonas
Hello everyone, I have a memcache which is set up like this in core.php: Cache::config('default', array( 'engine' => 'Memcache', 'duration'=>86400, 'probability'=> 100, 'prefix' => Inflector::slug(APP_DIR) . '_',

Re: Can't configure Memcached properly

2010-02-16 Thread Kareem Sabri
' => false ) ); But the File Engine is still being used for cacheing everything. On Feb 16, 4:31 pm, Pablo Viojo wrote: > The configuration that I send allows you to use memcached (or whatever you > like) for all caches but the internal cake's cache

Re: Can't configure Memcached properly

2010-02-16 Thread Pablo Viojo
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 pvi...@gmail.com

Re: Can't configure Memcached properly

2010-02-16 Thread Kareem Sabri
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 d

[OT] Redis, Memcached and CakePHP

2010-02-12 Thread Pablo Viojo
Sorry for the OT and the quite general questions Has anybody used Redis and Memcached with a CakePHP app? Any comments about performance, scalability, etc will be great appreciated Thanks in advance! Regards Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http

Re: Can't configure Memcached properly

2010-02-12 Thread Pablo Viojo
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::con

Re: Can't configure Memcached properly

2010-02-12 Thread Kareem Sabri
ion'=> 30, //[optional] >               'servers' => array('192.168.1.11:11211 '), >               'compress' => false, >       )); > > use your server IP > > On Feb 11, 11:43 pm, Kareem Sabri wrote: > > > > > Hello,

Re: Can't configure Memcached properly

2010-02-12 Thread majna
x27; => false, )); use your server IP On Feb 11, 11:43 pm, Kareem Sabri 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

Can't configure Memcached properly

2010-02-11 Thread Kareem Sabri
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',

Re: Problem with multiple memcached configs

2009-11-24 Thread jmbenn...@gmail.com
> Never mind answered my own question. Looks like it's a bug in the > Cache class. Did you file a report? 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 "

Re: Problem with multiple memcached configs

2009-11-17 Thread mehodgson
Never mind answered my own question. Looks like it's a bug in the Cache class. I Added the following line to the Cache::read() function $_this->_Engine[$engine]->settings = $settings; just before the call to the engine to read. Everything works as it should now. On Nov 17, 10:06 am, mehodgs

Problem with multiple memcached configs

2009-11-17 Thread mehodgson
I am trying to set up multiple configurations for the Memcache engine to allow for varying caching periods in CakePHP 1.2.5. I have set up the following: Cache::config( 'long', array( 'engine' => 'Memcache', 'duration'=> 100800, 'prob

Re: Memcached Settings

2009-08-30 Thread brian
'probability'=> 100, 'prefix' => Inflector::slug(APP_DIR) . '_', 'servers' => array('127.0.0.1:11211'), 'compress' => false ) ); On Sun, Aug 30, 2009 at 2:07 PM, N

Memcached Settings

2009-08-30 Thread Neelesh
In CakePHP doc, I read about Memcached support included in CacheEngines. AFAIK, memcached is a daemon. To be able to use it, we will need to use its IP Address and Port number. Can you help me figure out how I am going to set this is CakePHP? Thanks Neelesh

Re: Memcached in Cake 1.2

2008-06-16 Thread [EMAIL PROTECTED]
Is someone can help me? On 13 Giu, 16:17, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would use memcached with Cake 1.2 > In the manual I haven't found anything. > I hope someone can help me. > I have installed memcached (I can see it in phpinfo). >

Memcached in Cake 1.2

2008-06-13 Thread [EMAIL PROTECTED]
I would use memcached with Cake 1.2 In the manual I haven't found anything. I hope someone can help me. I have installed memcached (I can see it in phpinfo). In core.php I have uncommented the line about memcached. ANd I have set Configure::write('Cache.check', true); Then I

check if memcached is caching

2007-10-31 Thread [EMAIL PROTECTED]
Hi: Im using cake 1.2 pre beta,im trying to use its cache engine with memcached i set at core.php Configure::write('Cache.check', true); define ('CACHE_CHECK', true); Cache::config('default', array('engine' => 'Memcache',