Jump to content

Memcache with socket instead of TCP/IP


Recommended Posts

So recently I found out that my host moved away from TCP/IP ports for their memcache, and went with a socket (apparently its faster). Basically I have a path to put in now. Will this work with IPB? I went ahead and put it in, uploaded the new constraints file to the root. Is there anyway to test to see if memcache is actually working? I just want to clarify that IPB will work like this, and if there is a way to actually see if it's functional. Thanks.

Link to comment
Share on other sites

Yes Brandon from support was super helpful, he even provided me screenshots to show it was being  cached. I just put in the full path  to the socket and made sure to upgrade the new script it generates to my root and it just worked. So apparently IPB uses both tcp/ip and sockets as well.

Link to comment
Share on other sites

Solution from Marc:

You would add the following to your constants.php file instead 

define( 'CACHE_METHOD', 'Memcache' );
define( 'CACHE_CONFIG', '{"servers":["\\/some\\/path\\/here\\/memcached.sock"]}' );
define( 'CACHE_PAGE_TIMEOUT', 30 );

If you want to then ensure that caching is working correctly on your site, you can add this to your constants.php file temporarily, which will show you what is being cached

define( 'CACHING_LOG', true );
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...