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 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 also add new config in Config/core.php in my frontend app, the config 
> name is 'medium', prefix 'uwl_' and using Memcached engine as well
> Everything runs properly and it seems the Memcached is working
> The issue occurs when I tried to change the image content using my backend 
> app
> I change the image content and when I refresh the frontend page, the image 
> disappear, which is normal because it's still get the data from Memcached
> The next step is I create a function on my backend app, the purpose is to 
> clear the cache
> Within this function, I did Cache::clear('uwl_', 'medium'); so I guess it 
> should be good
> I assume the cache will be cleared and when I refresh the frontend one 
> more time, the image will be changed
>
> Unfortunately it didn't happen, the image still broken and I assume the 
> cache wasn't cleared
> I tried to Google so many times regarding to clearing memcached using 
> cakephp, but still no hint at all
>
> Anyone experienced this kind of problem before?
> Any suggestion to clear the cache and solve my issue?
>
> Thanks in advance
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


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 also add new config in Config/core.php in my frontend app, the config 
name is 'medium', prefix 'uwl_' and using Memcached engine as well
Everything runs properly and it seems the Memcached is working
The issue occurs when I tried to change the image content using my backend 
app
I change the image content and when I refresh the frontend page, the image 
disappear, which is normal because it's still get the data from Memcached
The next step is I create a function on my backend app, the purpose is to 
clear the cache
Within this function, I did Cache::clear('uwl_', 'medium'); so I guess it 
should be good
I assume the cache will be cleared and when I refresh the frontend one more 
time, the image will be changed

Unfortunately it didn't happen, the image still broken and I assume the 
cache wasn't cleared
I tried to Google so many times regarding to clearing memcached using 
cakephp, but still no hint at all

Anyone experienced this kind of problem before?
Any suggestion to clear the cache and solve my issue?

Thanks in advance

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Re: Delete Function Issue in Model

2015-03-19 Thread Ronald Layanto
Hi Dnyanesh,

Thank you for your response
I will try it, hopefully it works

Thanks

On Thursday, March 19, 2015 at 4:11:44 PM UTC+7, dnyanesh kolhe wrote:
>
> In Related Model mention 'dependent' => true This will delete the 
> associate data from other table
>
> On Thursday, 5 March 2015 15:10:20 UTC+5:30, Ronald Layanto wrote:
>>
>> Hi all,
>>
>> This is my first time posting in this group, so I'm sorry if there's a 
>> similar topic before
>> I just replace my Lib folder with CakePHP 2.6.2 and everything seems great
>> However, I find an issue with delete function
>> When I delete using a model, related records in different table are not 
>> deleted (the cascade = true is not working)
>> I already set the relationships in each models, but still I have to 
>> delete them manually right after I perform delete function
>> I saw the docs, but it said the cascade automatillcaly set as 'true'
>> Is there anyone face the same issue like me?
>>
>> Thanks in advance
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Delete Function Issue in Model

2015-03-05 Thread Ronald Layanto
Hi all,

This is my first time posting in this group, so I'm sorry if there's a 
similar topic before
I just replace my Lib folder with CakePHP 2.6.2 and everything seems great
However, I find an issue with delete function
When I delete using a model, related records in different table are not 
deleted (the cascade = true is not working)
I already set the relationships in each models, but still I have to delete 
them manually right after I perform delete function
I saw the docs, but it said the cascade automatillcaly set as 'true'
Is there anyone face the same issue like me?

Thanks in advance

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.