Insomnia Posted December 7, 2013 Share Posted December 7, 2013 (edited) Hi everyone, I have trouble with memcache. It is installed, together with extension but, When I:- click to enable cache - i get blank page. - I tried to add localhost, 127.0.0.1, IP - same issue (blank page and when i reload page i get cache disabled - test button do nothing port is added default and this is my servers output regarding memcache/d: Please assist me, Thanks! Edited December 7, 2013 by Insomnia (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted December 8, 2013 Share Posted December 8, 2013 what version of Prestashop? did you install both the memcache daemon and the php extension? What port is the memcache daemon running on? Did you confirm it is actively running? Did you enable _PS_MODE_DEV_ on Prestashop so you can see what the error is, instead of a blank page? Link to comment Share on other sites More sharing options...
Insomnia Posted December 8, 2013 Author Share Posted December 8, 2013 I have PrestaShop™ 1.5.6.0Yes, both deamon and extension is installed. Its on default 11211 port. Memcache is running, confirmed and triple checked by hosting company. How to enable _PS_MODE_DEV_? Link to comment Share on other sites More sharing options...
nienha Posted December 9, 2013 Share Posted December 9, 2013 After some research i have abandoned memcache in favor of APC. I dont know about you but this was the best solution for me performance wise. You can read about it here: http://stackoverflow.com/questions/815041/memcached-vs-apc-which-one-should-i-choose Link to comment Share on other sites More sharing options...
bellini13 Posted December 9, 2013 Share Posted December 9, 2013 APC is good, but if you are using a FCGI (fast cgi module) or another apache module that does share and keep PHP processes in memory, then APC will not actually work Link to comment Share on other sites More sharing options...
indus Posted January 20, 2014 Share Posted January 20, 2014 Bellini, have you tried these caches with prestashop. From what i hear, none of them work properly with 1.5. I have a similar issue with memcache giving a blank page at back office, and APC instantly reaches 100 percent fragmentation within minutes. Link to comment Share on other sites More sharing options...
bellini13 Posted January 21, 2014 Share Posted January 21, 2014 I do and have used them. Memcache is working fine for me currently. Prestashop adds and removes elements from the cache, but I doubt it manages fragmentation, I would think that is left up to the cache engine to manage. You should probably google and research further on how to manage APC Link to comment Share on other sites More sharing options...
cong2013 Posted January 22, 2014 Share Posted January 22, 2014 (edited) APC is good, but if you are using a FCGI (fast cgi module) or another apache module that does share and keep PHP processes in memory, then APC will not actually work Yes, unfortunately this is true and effects all servers running Plesk as management console (Plesk uses fcgi instead of fastcgi too) APC seems to be running - However it resets every ~30 seconds. I'v tried memcache on my VPS (wordpress runs fine and fast with memcache on the same server) but the performance of PS with memcache is worst. Edited January 22, 2014 by cong2013 (see edit history) Link to comment Share on other sites More sharing options...
Dh42 Posted January 22, 2014 Share Posted January 22, 2014 APC runs fine under fcgi. It only really runs under fcgi, dso, and hiphop. Check this, http://dh42.com/phpinfo.php http://dh42.com/apc.php Link to comment Share on other sites More sharing options...
indus Posted January 22, 2014 Share Posted January 22, 2014 You can see from the link on your site, the fragmentation is at 100 %. Link to comment Share on other sites More sharing options...
Dh42 Posted January 22, 2014 Share Posted January 22, 2014 The reason it is fragmented is because I have the memory set low for the site. My blog actually gets a lot of traffic. If I upped the memory it would not fragment. Check this site out on the same server. http://maisondestencils.com/apc.php Link to comment Share on other sites More sharing options...
cong2013 Posted January 22, 2014 Share Posted January 22, 2014 APC runs fine under fcgi. It only really runs under fcgi, dso, and hiphop. Check this, http://dh42.com/phpinfo.php http://dh42.com/apc.php Hi your phpinfo() say cgi/fastcgi - thats fine for APC Mine says cgi/fcgi and this dont work. There' a big difference between fcgi and fastcgi look here http://forum.parallels.com/showthread.php?264019-APC-with-FastCGI-uptime-0 there are numerous thread dealing with this problem round the web It is possible to get APC working (well its working on fcgi but resets after a view seconds) on fcgi/plesk however this is for unix experts only and valid to the next update of plesk. Link to comment Share on other sites More sharing options...
bellini13 Posted January 22, 2014 Share Posted January 22, 2014 for all intents and purposes, APC does not work with FCGI. it will appear to work, but in reality once the PHP process is killed, the memory (apc cache) is killed with it. you can increase the timeout for the php thread, however that kinda kills the point of FCGI As already stated... FCGI and FastCGI are not the same thing. 1 Link to comment Share on other sites More sharing options...
Recommended Posts