Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 30, 20231 yr 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
June 30, 20231 yr Community Expert Make sure to also exclude the api directory if you want to use REST / GraphQL
June 30, 20231 yr Doesn't work as well as guest page caching did though, guests can't change themes is an issue too.
July 1, 20231 yr 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, 20231 yr by SeNioR-
July 1, 20231 yr Author 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. 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.
July 1, 20231 yr 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, 20231 yr by SeNioR-
July 1, 20231 yr Author The only drawback is that this caching will impact in the number of recorded views for each item (topics, articles, and so on), right?
July 1, 20231 yr Community Expert 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.
July 1, 20231 yr 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, 20231 yr by Grafidea
July 1, 20231 yr What if I have a different admin directory name? just change "admin" to your admin panel path. Edited July 1, 20231 yr by SeNioR-
July 1, 20231 yr 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, 20231 yr by Grafidea
July 1, 20231 yr You're probably already logged out but the cache still shows you are logged in that's why this error. Edited July 1, 20231 yr by SeNioR-
July 1, 20231 yr 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.
July 1, 20231 yr 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. 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, 20231 yr by The Old Man Stupid autocorrect