Ah sorry I forgot to mention,
On Saturday, March 21, 2015 at 10:49:17 PM UTC+7, Ronald Layanto wrote:
-- 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 stupidI have an issue using Memcached in CakePHP 2.6.3Currently I develop a simple website in my laptop, which already installed with MemcachedThe Memcached already installed properly, I already checked using phpinfo and there's no problem at allI also add new config in Config/core.php in my frontend app, the config name is 'medium', prefix 'uwl_' and using Memcached engine as wellEverything runs properly and it seems the Memcached is workingThe issue occurs when I tried to change the image content using my backend appI 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 MemcachedThe next step is I create a function on my backend app, the purpose is to clear the cacheWithin this function, I did Cache::clear('uwl_', 'medium'); so I guess it should be goodI assume the cache will be cleared and when I refresh the frontend one more time, the image will be changedUnfortunately it didn't happen, the image still broken and I assume the cache wasn't clearedI tried to Google so many times regarding to clearing memcached using cakephp, but still no hint at allAnyone 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:
Post a Comment