Jump to content

Enabling Memcached cause Error 500 and Ajax errors


Recommended Posts

Hi,

 

I have just installed Memcached on my server and enabled it in the BO. At first it looked like it was working, the loading of the page was much faster but then I realised that I had 2 issues with the website:

  1. Ajax Error: When I try to add a product to the cart I get an Ajax error.
  2. Internal Error 500: I can see in the Developer tools in Chrome that some of the elements on the page get an Error 500 (it could be related to the Ajax error??).

I run PS 1.4.4.

Any ideas why this would happen?

Thank you

Link to comment
Share on other sites

Thanks Vekia. I should have done this before posting my request.

 

The error I got is:

Fatal error: Call to undefined method Cache::__destruct() in /mydomain/classes/MCached.php on line 149

Any ideas what this might be. The code in question is the following in Mcached.php:

	public function __destruct()
	{
		parent::__destruct();
		if (!$this->_isConnected)
			return false;
		$this->_memcacheObj->set('keysCached', $this->_keysCached, 0, 0);
		$this->_memcacheObj->set('tablesCached', $this->_tablesCached, 0, 0);
		$this->close();
	}

I could not find anything in forums about that specific error.

Thanks 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...