Surendra.S Posted October 7, 2017 Posted October 7, 2017 Hi All, I use IPB 4.1 and installed MEMCACHE on my server. 1) What is the Server address that should be provided ? Is it my Server's IP address and the Port where Memcache is running ? Any other things to be done to make Memcache working ? 2) How does MEMCACHE affect Google Ads ? If a page is cached and served to (lets say, 100 people), the Google Ads in that page render properly ? Do they load different Ads for each of those 100 people ? (or) Ads also get cached and same Ad gets displayed for everyone ?
ASTRAPI Posted October 8, 2017 Posted October 8, 2017 You should set it as the example: 127.0.0.1:11211 as it is on local server and you will need an internal connection... Memcached is for object caching in ram and you shouldn’t have any issues with your Ads ;-)
Surendra.S Posted October 12, 2017 Author Posted October 12, 2017 Thank You ! Finally got it to work.
sammeta Posted May 9, 2018 Posted May 9, 2018 Hi, So the at giving server details is it 127.0.0.1:11211 or my serverip:port where memcachd running?
AlexWright Posted May 9, 2018 Posted May 9, 2018 5 minutes ago, sammeta said: Hi, So the at giving server details is it 127.0.0.1:11211 or my serverip:port where memcachd running? Holy necropost Batman! (To answer, it's the 2nd, your server IP and port on that server where memcached is running.)
ASTRAPI Posted May 9, 2018 Posted May 9, 2018 If memcached is on the same server as your forum then use 127.0.0.1:11211 and if you have the memcached on an external server then you can use the server ip. Also if it is on external server remember to open the port on firewall on both servers ?
sammeta Posted May 10, 2018 Posted May 10, 2018 My mecached is on the same server as my forum. I am giving the 127.0.0.1:11211 but its throwing The servers provided are not valid.
bfarber Posted May 10, 2018 Posted May 10, 2018 That means that the software was unable to connect to the server/port for some reason.
BizTech Posted May 10, 2018 Posted May 10, 2018 12 hours ago, sammeta said: My mecached is on the same server as my forum. I am giving the 127.0.0.1:11211 but its throwing The servers provided are not valid. 1. Install memcached 2. Install and enable memcached PHP extension then try either with: localhost:11211 or 127.0.0.1:11211
ASTRAPI Posted May 10, 2018 Posted May 10, 2018 You may forgot to install the Memcached php extension?
bfarber Posted May 11, 2018 Posted May 11, 2018 If the extension wasn't installed you wouldn't be able to access the form fields that are in the screenshot (because the radio option would be disabled). Most likely the problem is that the memcached server is not running, or a firewall or similar script is blocking PHP from being able to connect to memcached.
AnonymousDev Posted December 3, 2018 Posted December 3, 2018 Just bringing up this old-ish thread. When receiving the error mentioned above "The servers provided are not valid". What are a few things we can look at to solve this issue? Opening certain ports, checking if they are blocked by firewall etc? Thanks :)
bfarber Posted December 3, 2018 Posted December 3, 2018 Yes, if you are certain the address and port values are correct, the most likely problems then are: Firewall may be blocking access to the port DNS may not be translating as you might expect (e.g. I had a client recently advise me to use the public server IP address or hostname, instead of 127.0.0.1/localhost, to access Redis).
AnonymousDev Posted December 4, 2018 Posted December 4, 2018 Thanks @bfarber I'll look into this. I'm thinking the access to the port may be blocked by the firewall.
AnonymousDev Posted December 4, 2018 Posted December 4, 2018 I've looked into this, allowed incoming and outgoing ports and have tried the localhost IP address, hostname and public IP. but it still gives me the error... "The servers provided are not valid" I must be misunderstanding something.
AnonymousDev Posted December 13, 2018 Posted December 13, 2018 All fixed for me now. My issue was that memcached didn't install correctly, or I didn't install it correctly. Now it's perfect :)
Jeffrey Roberts Posted December 13, 2019 Posted December 13, 2019 Can I ask, what was the behaviour for the Google Adsense ads when you didn't have the cache setup correctly? I am having intermittent issues with ads showing. I've completely turned off caching, but that doesn't seem to make a difference.
AnonymousDev Posted January 17, 2020 Posted January 17, 2020 @Jeffrey Roberts I just happened to check out this post while looking something up as my memcached isn't working again, then came across your post. I also have the same issue with Google Ads. My homepage displays them fine but in the forum I have the intermittent issue.
Jeffrey Roberts Posted February 4, 2020 Posted February 4, 2020 On 1/17/2020 at 1:57 AM, AnonymousDev said: @Jeffrey Roberts I just happened to check out this post while looking something up as my memcached isn't working again, then came across your post. I also have the same issue with Google Ads. My homepage displays them fine but in the forum I have the intermittent issue. I am starting to think that Adsense is not displaying ads intermittently because 1) Not enough content on a page 2) Can't read the page properly because it is (re)built with AJAX 3) Some other reason I have still not figured out
AnonymousDev Posted February 5, 2020 Posted February 5, 2020 On 2/5/2020 at 12:49 AM, Jeffrey Roberts said: I am starting to think that Adsense is not displaying ads intermittently because 1) Not enough content on a page 2) Can't read the page properly because it is (re)built with AJAX 3) Some other reason I have still not figured out It seems to be working well on my site at the moment. I have ads displaying fine on pages with very little content. The main page I usually have issues with is the Unread Content page.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.