We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Problems with Memcached

Development and Programming

scottb's avatar
scottb
343 posts
9 years ago
scottb's avatar scottb

Greetings. I am getting an error message on General Configuration on the Caching Driver option. When I set it to Memcached (which is installed on my server), an error message says “Cannot Connect to Memcached, using File Driver instead”.

At first, I used the following on my config file:

$config['cache_driver'] = 'memcached';

Based on another suggestion, I then used:

$config['cache_driver'] = 'memcached';
$config['memcached'] = array(
  array(
    'host' => 'localhost',
    'port' => (removed),
    'weight' => 1,
  )
);

Any suggestions?

Just for the record, array is in there twice, which I suspect is a mistake on the part of the person who posted the code. But it doesn’t work with array in there once, either.

       
Ingo Wedler's avatar
Ingo Wedler
63 posts
9 years ago
Ingo Wedler's avatar Ingo Wedler

This is from a EE2 config, i was using, and it has worked:

$config['cache_driver'] = 'memcached';
$config['memcached'] = 'array(   array(     \'host\' => \'127.0.0.1\',     \'port\' => 11211,     \'weight\' => 1,   ) );';
       
scottb's avatar
scottb
343 posts
9 years ago
scottb's avatar scottb

Thanks for the reply, Ingo. Unfortunately, that code isn’t working either.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.