Gabriel Torres Posted June 30, 2023 Posted June 30, 2023 Hi, I was reading at the feature deprecation list the following: Quote [Classic] Guest Page Caching This is a legacy way to cache pages for efficiency. Our platform can now be used with a CDN for guest page serving. We use CloudFlare. I was wondering whether we need any additional steps for caching guest pages at the CDN level or if any additional configuration is needed. Please advise. Cheers, Gabe
Solution SeNioR- Posted June 30, 2023 Solution Posted June 30, 2023 Settings: Link: nodle and Gabriel Torres 1 1
Daniel F Posted June 30, 2023 Posted June 30, 2023 Make sure to also exclude the api directory if you want to use REST / GraphQL The Old Man 1
marklcfc Posted June 30, 2023 Posted June 30, 2023 Doesn't work as well as guest page caching did though, guests can't change themes is an issue too. The Old Man 1
SeNioR- Posted July 1, 2023 Posted July 1, 2023 (edited) Correct. I forgot to mention there is a problem with changing language and theme. The cache still shows the previous language or theme (until we go to another page or the cache clears), but this is a sign that the cache is working. Edited July 1, 2023 by SeNioR- The Old Man 1
Gabriel Torres Posted July 1, 2023 Author Posted July 1, 2023 19 hours ago, Daniel F said: Make sure to also exclude the api directory if you want to use REST / GraphQL I don't know what "REST / GraphQL" is. Please advise. Gabe. Just now, SeNioR- said: Correct. I forgot to mention there is a problem with changing language and theme. The cache still shows the previous language or theme, but this is a sign that the cache is working. Not an issue for us here -- we don't allow guests to change themes or language anyway. SeNioR- 1
SeNioR- Posted July 1, 2023 Posted July 1, 2023 (edited) 4 minutes ago, Gabriel Torres said: Not an issue for us here 🙏 Now, open your community in incognito mode and let me know if you see a difference in page loading speed. Generally, the page should load right away. Edited July 1, 2023 by SeNioR- Gabriel Torres 1
Gabriel Torres Posted July 1, 2023 Author Posted July 1, 2023 The only drawback is that this caching will impact in the number of recorded views for each item (topics, articles, and so on), right?
Jim M Posted July 1, 2023 Posted July 1, 2023 23 minutes ago, Gabriel Torres said: The only drawback is that this caching will impact in the number of recorded views for each item (topics, articles, and so on), right? Minimally but yes. If you have several guests in the same region, hitting the same page URL, within 15 min, it will indeed only count the first view which caches the page. Gabriel Torres 1
Grafidea Posted July 1, 2023 Posted July 1, 2023 (edited) 20 hours ago, SeNioR- said: Settings: Link: What if I have a different admin directory name? Are these settings enough, is that all you need to do in cloudflare? I have error: The CSRF protection key does not match. This may mean that the plugin or theme is not up to date. Please contact technical support for more information. Edited July 1, 2023 by Grafidea
SeNioR- Posted July 1, 2023 Posted July 1, 2023 (edited) 7 minutes ago, Grafidea said: What if I have a different admin directory name? just change "admin" to your admin panel path. Edited July 1, 2023 by SeNioR- Jim M 1
Grafidea Posted July 1, 2023 Posted July 1, 2023 (edited) It doesn't work very well for me because the main page is displayed as logged out, and when I enter a section I am already logged in ... I cleared the cache and still the same problem, plus this error: The CSRF protection key does not match. This may mean that the plugin or theme is not up to date. Please contact technical support for more information. Edited July 1, 2023 by Grafidea
SeNioR- Posted July 1, 2023 Posted July 1, 2023 (edited) You're probably already logged out but the cache still shows you are logged in that's why this error. Edited July 1, 2023 by SeNioR-
nodle Posted July 1, 2023 Posted July 1, 2023 1 hour ago, Grafidea said: I have error: The CSRF protection key does not match. This may mean that the plugin or theme is not up to date. Please contact technical support for more information. Close your web browser and re-open it. Like @SeNioR- said it thinks you are logged in.
The Old Man Posted July 1, 2023 Posted July 1, 2023 (edited) It doesn’t help that browsers don’t honour the concept of sessions any more. A session should end when you close the browser, but they moved the goalposts a few years back. 22 hours ago, marklcfc said: Doesn't work as well as guest page caching did though, guests can't change themes is an issue too. Yep, we got boned. Edited July 1, 2023 by The Old Man Stupid autocorrect
Recommended Posts