C
C
coderisimo2015-12-11 17:11:54
memcached
coderisimo, 2015-12-11 17:11:54

What's wrong with memcached on Prestashop?

There is memcached on the server, but when I try to enable it (by setting the port and 127.0.0.1) in prestashop I get the message:
b242b09af5fa452ba8e325b44c77efad.jpg
"to use Memcached, you must install the Memcache PECL exstension on your server"
but the thing is that I have this beast installed . here is a snippet from php info
724e12941c9e4b10931ac53b0e772de7.jpg
when i run a simple script to check

<?php
$mc = new Memcached();
$mc->addServer("127.0.0.1", 11211);
 
$result = $mc->get("test_key");
 
if($result) {
  echo $result;
} else {
  echo "No data on Cache. Please refresh page pressing F5";
  $mc->set("test_key", "test data pulled from Cache!") or die ("Failed to save data at Memcached server");
}
?>

all OK. I see - test data pulled from Cache, however, when trying to activate it in prestashop, there are again messages about the missing php module.
Where to dig?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2015-12-11
@coderisimo

php.net/manual/en/memcache.installation.php
stackoverflow.com/questions/1825256/memcache-vs-me...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question