Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: digger on June 16, 2014, 08:39:03 AM

Title: SMF Caching & Memcached unix socket issue
Post by: digger on June 16, 2014, 08:39:03 AM
SMF function get_memcached_server() don't work with socket address like unix:///any/socket:0
Title: Re: Memcached unix socket issue
Post by: ziycon on June 16, 2014, 10:48:59 AM
Can you give any more information, you'll need to supply information of when and where it occurred and steps to replicated if possible, are there any other error messages or warnings?
Title: SMF Caching & Memcached unix socket issue
Post by: digger on June 16, 2014, 11:02:49 AM
Quote from: ziycon on June 16, 2014, 10:48:59 AM
Can you give any more information, you'll need to supply information of when and where it occurred and steps to replicated if possible, are there any other error messages or warnings?

1) Install memcached and set up it to use unix socket.
2) Go to Admin - Server Settings - Caching, enable cache and set Memcached settings to your Memcached socket (unix:///path/socket:0).
3) Go to Admin - Logs and see Memcached errors.

Title: Re: SMF Caching & Memcached unix socket issue
Post by: ziycon on June 16, 2014, 11:06:18 AM
Can you paste the exact errors please?
Title: Re: SMF Caching & Memcached unix socket issue
Post by: digger on June 16, 2014, 11:08:31 AM
Quote from: ziycon on June 16, 2014, 11:06:18 AM
Can you paste the exact errors please?
memcache_connect() expects parameter 2 to be long, string given
Title: Re: SMF Caching & Memcached unix socket issue
Post by: Arantor on June 16, 2014, 11:25:27 AM
Sockets are not supported. I'm not sure this is technically a bug.
Title: Re: SMF Caching & Memcached unix socket issue
Post by: digger on June 16, 2014, 11:30:31 AM
Quote from: ‽ on June 16, 2014, 11:25:27 AM
Sockets are not supported. I'm not sure this is technically a bug.
It just needs to modify a few lines in this function to make it work with sockets too.
Title: Re: SMF Caching & Memcached unix socket issue
Post by: Arantor on June 16, 2014, 11:31:20 AM
Then by all means suggest the changes and it can be supported in 2.1...