Ibai Posted October 24, 2022 Posted October 24, 2022 Hi there! I see that whenever I increase the caching time method, it obviously misses lots of views=views++; It make sense, for the sake of the optimization and performance. However, is there a way to just leave and execute this kind of update queries? I have lots of Guests and I try to cache the most I can. Then, I see that my articles, files, topics hits are very low comparing with what Google Analytics then reports. This set up then reflects in confidence from my visitors. They might think that my content is not good enough or even the content that they post is not being read as much as they see. Is there any way to "change" this behavior? What's your opinion? Cheers, Ibai
Randy Calvert Posted October 24, 2022 Posted October 24, 2022 In 4.7.4, guest page caching is being removed. Quote Invision Community 4.7.4 (November 2022 release) [Self hosted servers only] 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. Ibai 1
Ibai Posted October 26, 2022 Author Posted October 26, 2022 On 10/24/2022 at 10:14 PM, Randy Calvert said: In 4.7.4, guest page caching is being removed. How does this work? Should I integrate with Cloudflare and try to cache when there's no cookie set? Anyhow, this keeps my issue. How do you work with views? Cache brakes the increase of hits so the views number is not sharp...
Randy Calvert Posted October 26, 2022 Posted October 26, 2022 8 minutes ago, Ibai said: How does this work? Should I integrate with Cloudflare and try to cache when there's no cookie set? Anyhow, this keeps my issue. How do you work with views? Cache brakes the increase of hits so the views number is not sharp... The first question is do you really need guest page caching? Don't make things more complicated than you need them to be. Next... if you do, if a page is served from cache, it won't increment the counter for page views. (That's literally the whole benefit of guest page caching... that they never trigger the origin in the first place.) That's by design and something that can't change.
opentype Posted October 26, 2022 Posted October 26, 2022 I just started using Cloudflare caching for guest pages. I deliberately excluded a few areas like articles where I need the view count. It’s very easy to define this in Cloudflare. But for 90% of the site, the accuracy of the view count really doesn’t matter much. And it’s not like caching turns the view count off. It just reduces the view count a little. The views that matter are probably the ones from the active members, which still count. But whether a topic was hit once or twice during your cache time by one or two guests, I don’t think it makes a big difference. Unfortunately, there is no middle ground. Either you cache it or not. You can’t cache it and still count the views. Daniel F 1
Daniel F Posted October 26, 2022 Posted October 26, 2022 There’s a great way to utilize the cloudflare workers for the guest page counts, so that the page count is increased even if the guest gets only the cached page and the original request never makes it to your own server. It’s going to take some time, but I’ll share the instructions ( or app) in few weeks AlexJ, CheersnGears, Ibai and 4 others 2 4 1
G17 Media Posted March 28, 2023 Posted March 28, 2023 On 10/26/2022 at 5:37 PM, Daniel F said: There’s a great way to utilize the cloudflare workers for the guest page counts, so that the page count is increased even if the guest gets only the cached page and the original request never makes it to your own server. It’s going to take some time, but I’ll share the instructions ( or app) in few weeks Did you ever get a chance to do this?
Recommended Posts