Notifications
Clear all

wpForo 1.x.x [Closed] How are "views" calculated?

23 Posts
5 Users
2 Reactions
2,933 Views
Posts: 389
Topic starter
(@danniee)
Honorable Member
Joined: 5 years ago

Views are still not increased. It makes the forum look inactive which is not good :/

Posts: 389
Topic starter
(@danniee)
Honorable Member
Joined: 5 years ago

Excuse my ignorance, but why is it that cache and wpforo don't work for this when all other forum software like phpbb and whatever works fine? Also, I can't remember having this issue in the past with wpforo and I've always used the same cache plugin.

Problem for me is that nothing works. I tried excluding in WPRocket, but that doesn't help. Views are only updated live when I turn of "object cache" in wpforo, but then things like "likes" stops working instead.

The way this is coded doesn't make any sense. Views on any forum should be updated live/once you refresh the page.

Posts: 389
Topic starter
(@danniee)
Honorable Member
Joined: 5 years ago

So is there any way to remove "views" because it doesn't look good when it displays zero views due to the caching thing. The code suggested doesn't work properly. It doesn't display right. Thanks.

1 Reply
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@danniee,

So, you mean all your topic views are zero, and they don't increase even if you click the [Delete all caches] button in Dashboard > Forums > Dashboard admin page?

If so, please send admin login details to support[at]gvectors.com, we can check it directly on your website, because it seems like a site specific issue.

Posts: 389
Topic starter
(@danniee)
Honorable Member
Joined: 5 years ago

Hi,

Views do increase after I hit Delete all caches or when someone posts in a thread. But unless I do that, views will display as zero. I've had many different forum softwares throughout the year and I've never seen that before. Views are typically always updated on the fly whenever someone clicks the post.

It's kind of tedious having to delete all caches just to see how many views a post has received. Is there any way to change this? Thanks.

5 Replies
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@danniee,

The views will be updated once a new reply or topic is posted. There are lots of other actions that triggers view update. So it makes views updating very often. This saves lots of server resources and makes your forum lighter.

There is no a critical point to update views right after entering the topic. In any case if you want to update them in real-time mode you should disable the "Enable Object Cache" option in Dashboard > Forums > Settings > Features Tab. But this will affect the forum performance. However, if your server is powerful and the forum is not large you'll not see any changes.

(@danniee)
Joined: 5 years ago

Honorable Member
Posts: 389

@robert thank you for the answer. As mentioned, I am a bit confused as to why on the fly update of views whenever someone enter a topic would be a problem with this software and not for example phpbb? Is it Wordpress itself that is the problem? I am just asking out of curiosity.

Also, as mentioned previously, I do know that disabling "Enable Object Cache" does what I want, but like I stated before it breaks the "likes" function. Why, I do not know.

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@danniee,

Posted by: @danniee

but like I stated before it breaks

I don't follow you... Please provide more info about how it breaks your like function?

 

Posted by: @danniee

fly update of views whenever someone enter a topic would be a problem

It doesn't relate to entering a topic. The problem is if you don't cache views, the website has to recalculate all topic views one by one on each page load. So each call of your forum pages will initiate lots of DB queries and calculating functions, which can be avoided by a simple caching of this information.

 

(@danniee)
Joined: 5 years ago

Honorable Member
Posts: 389

@robert

Yes, I understand why you do it, but what I don't get is why this is necessary with wpforo and not all the other big forum softwares I have used in the past such as phpbb and invisionboard. These are all updated live with every click. I think this is better because if views don't increase until someone replies (maybe never), it will just say zero. I personally think this is a strange thing?

What happens when I disable "Enable Object Cache" is that likes stops working properly. Members names will be displayed under the likes icon, but likes will say zero.

 

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@danniee

Posted by: @danniee

not all the other big forum

There are many forums that work in this way. Some of them don't cache their topics that's why they don't cache views. In any case this makes wpForo faster than the forums which don't do this. Also, the standalone forums seep is not depended on WordPress and tons of other plugins on WordPress. So, wpForo has to use cache solutions to increase the performance as much as possible.

 

Posted by: @danniee

What happens when I disable "Enable Object Cache" is that likes stops working properly. Members names will be displayed under the likes icon, but likes will say zero.

This issue should have been fixed with latest wpForo versions. Are you sure you're using the latest wpForo version and are you sure this issue still exist?

 

Posts: 389
Topic starter
(@danniee)
Honorable Member
Joined: 5 years ago

Thank you for the answer. Now I understand better why you have this approach. I think I will want to have the cache turned off though. Or even better would be if I could somehow remove views altogether because if no one is replying to topics it makes no sense to have views that will display zero. Is there any way to do this? The css I was asked to try to hide the views before did not work. It made the forum look weird.

And yes, I am using the latest version Version 1.9.3. I still have the mentioned problem.

1 Reply
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591
Posted by: @danniee

Or even better would be if I could somehow remove views altogether because if no one is replying to topics it makes no sense to have views that will display zero. Is there any way to do this?

This may be helpful: https://wpforo.com/community/how-to-and-troubleshooting-2/disable-view-counter/#post-20378

 

Posted by: @danniee

And yes, I am using the latest version Version 1.9.3. I still have the mentioned problem.

Ok, we'll check this again and fix in the next update.

Page 2 / 3