prestashop: memcached does NOT deactive even if on the backend its OFF.

In order for memcached to work on prestashop, two conditions have to be met:

  • memcached installed and running on the server
  • it has to be enabled on the prestashop backend.

If for some reason the memcached service is not running on the server, and you active it on the prestashop backend, it will not work, you will need to reboot the server for it to take effect. (maybe restarting the memcached service and apache will also do the trick).

 

So in order to have prestashop work with memcached:

memcached has to be enabled both in the server and prestashop's admin console

 

What if you want to disable memcached in the server?

you can go to:

/etc/default/memcached

set

ENABLE_MEMCACHED=no

 

In our particular case, memcached offered some mysql cpu optimization, but at a high php-fpm cost, so at the end of the day, doing a couple of benchmarks using screaming frog, we noticed that the site was crawled twice as fast with memcached disabled.

Maybe its a case of bad configuration, we'll have to take a look at that later, but for the moment we'll leave it off.

Leave a Reply

Your email address will not be published. Required fields are marked *