Notifications
Clear all

Vote up/down issues with cache plugins.

9 Posts
3 Users
0 Likes
3,604 Views
 Alex
(@techroot)
Member Customer
Joined: 8 years ago
Posts: 10
Topic starter  

Hello.

 

Im having problems with the vote functionality, the system works and the votes are being processed, but the results are not being shown after page refresh.

 

This is, if you up/down vote a comment, you will get the counter actualized , but if you leave and reenter the page, the vote count will be the same as before you voted.

 

This is a cache issue, the vote count will be updated if you deactivate the cache plugin or clean the cache, so i need to know wich files should i whitelist in order to get this propertly working.

 

Thanks.


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4171
 

Hi Alex,

this may be cache plugin specific issue, because we use cache plugins with wpDiscuz on all our websites and we've never faced with such issue. Please leave your cache plugin name.


   
ReplyQuote
 Alex
(@techroot)
Member Customer
Joined: 8 years ago
Posts: 10
Topic starter  

Hello, im sorry.

 

I use WP-Rocket

Thanks.


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4171
 

I'm sorry but we don't support WP-Rocket, this is a paid plugin.
I'd recommend read this support topic and try it:

https://gvectors.com/forum/emoticons/emoticons-not-working-on-our-site/#post-1278


   
ReplyQuote
 Alex
(@techroot)
Member Customer
Joined: 8 years ago
Posts: 10
Topic starter  

I understand but, i suppose, you guys can tell me wich JS do i need to whitelist, isent it?


   
ReplyQuote
 Alex
(@techroot)
Member Customer
Joined: 8 years ago
Posts: 10
Topic starter  

 

I just need the name of the JS involved in the Vote count call.

Asking too much?


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4171
 

As far as I see the problem comes after refresh. it doesn't show current count of vote. The current count exists correctly in database and it's being displayed by PHP. But this cache plugin caches all HTML and doesn't allow wpDiscuz to update HTML with new data. I don't see any JS function here. There should be some solution to initiate WP Rocket "cache update" depending on new votes. And this is a plugin specific solution, we don't familiar with this plugin code, so we can't provide with custom code.

I just need the name of the JS involved in the Vote count call.

JS doesn't make any count, all comes from database with PHP code. You can create AJAX request and update all votes of HTML after refresh, but it doesn't have direct relation to wpDiscuz JS and it'll be much more hard than asking WP Rocket support to help update cache after vote.


   
ReplyQuote
 Alex
(@techroot)
Member Customer
Joined: 8 years ago
Posts: 10
Topic starter  

Thank you so much, now i can get to WP-Rocket Team with some data. Thank you.


   
ReplyQuote
(@mmmmkkkk311)
New Member
Joined: 7 years ago
Posts: 1
 

same problem with https://wordpress.org/plugins/wp-fastest-cache/


   
ReplyQuote
Share:
Scroll to top