Need info ochJSsocials and ochOpenGraph
- Alex Baillie
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 21
- Ontvangen bedankjes 0
1 jaar 11 maanden geleden #2528
door Alex Baillie
ochJSsocials and ochOpenGraph werd gestart door Alex Baillie
Hello,
We are having a strange problem with both ochJSsocials and ochOpenGraph while using the custom field functionality and Cloudflare Cache. For example in ochOpenGraph we use a custom field to define the image and in ochOpenGraph we use a custom field to define the URL (to be shared). Both functions work perfect whenever Cloudflare Cache is disabled, but when enabled both fallback to the default settings in case of ochOpenGraph instead of using the custom image it uses the fallback image and with ochJSsocials it uses the default URL instead of the one defined via the custom field. By the way this happens with any caching solution we have tried not just Cloudflare. What is particularly interesting is that Cloudflare being an external caching provider is just fetching the pages the way Joomla outputs them.
Please help.
Thanks!
Alex
We are having a strange problem with both ochJSsocials and ochOpenGraph while using the custom field functionality and Cloudflare Cache. For example in ochOpenGraph we use a custom field to define the image and in ochOpenGraph we use a custom field to define the URL (to be shared). Both functions work perfect whenever Cloudflare Cache is disabled, but when enabled both fallback to the default settings in case of ochOpenGraph instead of using the custom image it uses the fallback image and with ochJSsocials it uses the default URL instead of the one defined via the custom field. By the way this happens with any caching solution we have tried not just Cloudflare. What is particularly interesting is that Cloudflare being an external caching provider is just fetching the pages the way Joomla outputs them.
Please help.
Thanks!
Alex
Graag Inloggen deelnemen aan het gesprek.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
1 jaar 11 maanden geleden #2530
door Ruud van Lent
Beantwoord door Ruud van Lent in topic ochJSsocials and ochOpenGraph
Hi Alex, that is indeed strange.
Currently in vacation and only on mobile now (in transit) so no solution for your inquiry.
I will look into it when I am back or have access to internet and my laptop.
Currently in vacation and only on mobile now (in transit) so no solution for your inquiry.
I will look into it when I am back or have access to internet and my laptop.
Graag Inloggen deelnemen aan het gesprek.
- Alex Baillie
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 21
- Ontvangen bedankjes 0
1 jaar 11 maanden geleden #2533
door Alex Baillie
Beantwoord door Alex Baillie in topic ochJSsocials and ochOpenGraph
Sounds good, enjoy your vacation!
Graag Inloggen deelnemen aan het gesprek.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
1 jaar 10 maanden geleden #2545
door Ruud van Lent
Beantwoord door Ruud van Lent in topic ochJSsocials and ochOpenGraph
Hi Alex,
picking up the slack caused by my vacation
Do you have a front-end URL where I can have a quick look?
picking up the slack caused by my vacation

Do you have a front-end URL where I can have a quick look?
Graag Inloggen deelnemen aan het gesprek.
- Alex Baillie
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 21
- Ontvangen bedankjes 0
1 jaar 10 maanden geleden #2547
door Alex Baillie
Beantwoord door Alex Baillie in topic ochJSsocials and ochOpenGraph
Hello Ruud,
Welcome back! Hope you had a great vacation. Here is a sample URL
Thanks,
Alex
Welcome back! Hope you had a great vacation. Here is a sample URL
Dit bericht bevat vertrouwelijke informatie
Thanks,
Alex
Graag Inloggen deelnemen aan het gesprek.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
1 jaar 10 maanden geleden #2555
door Ruud van Lent
Beantwoord door Ruud van Lent in topic ochJSsocials and ochOpenGraph
Hi Alex,
I just debugged the page with the Facebook Sharing debugger ( developers.facebook.com/tools/debug)
I see here that it og:url is set correct and the redirects are followed to the destination URL that facebook will use:
I also see that the image set by ochOpenGraph is the image ending in url '/opengraph'. Is that the image you set as custom field?
I just debugged the page with the Facebook Sharing debugger ( developers.facebook.com/tools/debug)
I see here that it og:url is set correct and the redirects are followed to the destination URL that facebook will use:
I also see that the image set by ochOpenGraph is the image ending in url '/opengraph'. Is that the image you set as custom field?
Graag Inloggen deelnemen aan het gesprek.
- Alex Baillie
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 21
- Ontvangen bedankjes 0
1 jaar 10 maanden geleden #2559
door Alex Baillie
Beantwoord door Alex Baillie in topic ochJSsocials and ochOpenGraph
Hi Ruud,
Yes all this is correct, I don't know why it works for you now. The issue is very strange. For example, as soon as I disable the cache, purge it all, basically I am starting from scratch and then I go quickly to the page it seems to cache the page fine, meaning that it uses the correct image and URL. But mostly this is not the case. So, for example, pages get cached with Cloudflare at the closest edge as soon as a visitor visits the page. What I am experiencing is that if I am the one going first to the page, the page gets cached properly and I think in this case the same happened when you visited the link, it got cached correctly. So I thought it might be something with Cloudflare, so I tried another caching solution (LiteSpeed) and I got similar issues and that’s when I discovered that it only behaves this way when using custom Joomla fields. I did several tests with scripts calling various information from Joomla like publishing date, author etc… and none of them create a problem. The problem only appears when using a third party component with custom Joomla fields. This is not definitive as of yet, but this is were I am at. Also I don’t know all the ins and out of your plugin, it always works when I disable caching the question again is, if it works with caching disabled why will it not just cache the page as such? Thanks!
Alex
Yes all this is correct, I don't know why it works for you now. The issue is very strange. For example, as soon as I disable the cache, purge it all, basically I am starting from scratch and then I go quickly to the page it seems to cache the page fine, meaning that it uses the correct image and URL. But mostly this is not the case. So, for example, pages get cached with Cloudflare at the closest edge as soon as a visitor visits the page. What I am experiencing is that if I am the one going first to the page, the page gets cached properly and I think in this case the same happened when you visited the link, it got cached correctly. So I thought it might be something with Cloudflare, so I tried another caching solution (LiteSpeed) and I got similar issues and that’s when I discovered that it only behaves this way when using custom Joomla fields. I did several tests with scripts calling various information from Joomla like publishing date, author etc… and none of them create a problem. The problem only appears when using a third party component with custom Joomla fields. This is not definitive as of yet, but this is were I am at. Also I don’t know all the ins and out of your plugin, it always works when I disable caching the question again is, if it works with caching disabled why will it not just cache the page as such? Thanks!
Alex
Graag Inloggen deelnemen aan het gesprek.
- Ruud van Lent
-
- Offline
Minder
Lees meer
- Berichten: 1707
- Ontvangen bedankjes 111
1 jaar 10 maanden geleden #2560
door Ruud van Lent
Beantwoord door Ruud van Lent in topic ochJSsocials and ochOpenGraph
Hi Alex,
How is cloudflare doing the caching, did you need to install something on apache / joomla (like a plugin), or is the caching done 'externally'?
How is cloudflare doing the caching, did you need to install something on apache / joomla (like a plugin), or is the caching done 'externally'?
Graag Inloggen deelnemen aan het gesprek.
- Alex Baillie
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 21
- Ontvangen bedankjes 0
1 jaar 10 maanden geleden #2563
door Alex Baillie
Beantwoord door Alex Baillie in topic ochJSsocials and ochOpenGraph
Right now the link I sent you previously does not get cached because I told Cloudflare not to cache it anymore. You will see that it always works:
www.mixedtimes.com/politics/europe-brace...after-gulf-crackdown
But, this page which has been cached does not work:
www.mixedtimes.com/business/futures-rise...nvidia-earnings-loom
www.mixedtimes.com/politics/europe-brace...after-gulf-crackdown
But, this page which has been cached does not work:
www.mixedtimes.com/business/futures-rise...nvidia-earnings-loom
Graag Inloggen deelnemen aan het gesprek.
- Alex Baillie
-
Onderwerp Auteur
- Offline
Minder
Lees meer
- Berichten: 21
- Ontvangen bedankjes 0
1 jaar 10 maanden geleden #2564
door Alex Baillie
Beantwoord door Alex Baillie in topic ochJSsocials and ochOpenGraph
No, it just pulls it like a reverse proxy I think. Nothing is installed or configured on the server.
Graag Inloggen deelnemen aan het gesprek.