Notifications
Clear all

Cache issue

5 Posts
3 Users
0 Likes
2,413 Views
(@pedropamn)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

Hi

I’ve noticed that when an user change your profile photo (not via gravatar, but via WP User Avatar Plugin) or change your name display (Via WordPress config, for example, John Doe to Doe John), it not update in comments. To update, is necessary clear browser cache or run incognito window…

How to prevent cache for comments?


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

Hi @pedropamn,

as we mentioned here we are going to add a new option for this purpose. However, as you need it asap please follow these steps:

1. In  /wp-content/plugins/wpdiscuz directory replace the  class.WpdiscuzCore.php file with the file I've provided below.

2. The same with the class.WpdiscuzWalker.php file in /wp-content/plugins/wpdiscuz/templates/comment directory. 

The new files can be found in this folder:


   
ReplyQuote
(@pedropamn)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

Thank you, works fine!

A question: If i update the plugin, it will overwrite this changes?


   
ReplyQuote
(@stefanse)
New Member
Joined: 5 years ago
Posts: 1
 

Hello,

Great plugin! Exactly what I was looking for for comments, plus a lot more, all for free.

I was also having an issue with caching. I was getting "500 error"s when I tried to update posts. I ran a plugin conflict test and found out that it was caused by WpDiscuz. I use the Varnish cache provided by my host, Dreamhost, and can check for caching errors using a plugin called Proxy Cache Purge.

I tried the solution in your post above and it worked! I have the same question as Pedro: will these changes be preserved when I update the plugin?

Thanks!


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5874
 

@pedropamn@stefanse,

The changes won't be lost, as we've already included it in the next version release. 

 


   
ReplyQuote
Share:
Scroll to top