Saturday, March 21, 2015

Memcached delete issue?

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+unsubscribe@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.

No comments: