Jump to content

memcache... again :)


Recommended Posts

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:

 

memcache.jpg

 

 

Please assist me,

 

Thanks!

Edited by Insomnia (see edit history)
Link to comment
Share on other sites

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

  • 1 month later...

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

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

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 by cong2013 (see edit history)
Link to comment
Share on other sites

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

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.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...