nodle Posted January 31, 2017 Posted January 31, 2017 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.
ASTRAPI Posted January 31, 2017 Posted January 31, 2017 Hi Just run from ssh: echo stats | nc 127.0.0.1 11211 Then check the values: STAT get_hits STAT get_misses to see if you have any hits and how many misses
nodle Posted January 31, 2017 Author Posted January 31, 2017 Any other way if I dont have SSH access?
ASTRAPI Posted January 31, 2017 Posted January 31, 2017 You can download a GUI admin panel for memcached .php file and upload it to your public_html folder and then check hits/misses from the browser Just google it and you will find a few options to download and test
nodle Posted January 31, 2017 Author Posted January 31, 2017 Thanks I put a ticket in with IPB first to make sure they support it like this.
russur Posted February 3, 2017 Posted February 3, 2017 On 01.02.2017 at 1:12 AM, nodle said: to make sure they support it like this Any feedback from IPB? I cant use socket connection
nodle Posted February 3, 2017 Author Posted February 3, 2017 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.
russur Posted February 8, 2017 Posted February 8, 2017 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 );
Recommended Posts
Archived
This topic is now archived and is closed to further replies.