The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Issue when ajax loa...
 
Share:
Notifications
Clear all

Issue when ajax loading batch of comments

12 Posts
3 Users
0 Reactions
1,144 Views
Posts: 22
Topic starter
(@willybob)
Eminent Member
Joined: 4 years ago

Just found an issue when comments are lazy-loaded through ajax :

depending on how many comments par page you setup in Dashboard > Settings > DiscussionsΒ admin page, lazy-loading will load first batch on comments, then lazy load some more comments then starts loading again the first comments, again and again.

You can bypass this only by setting 0 in Break comments into pages with X on Dashboard > Settings > Discussions admin page, wehich is useless because it loads all comments at once instead of lazy loading them by batch.

11 Replies
Asti
Posts: 7617
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi @willybob,

Please let us know if you use any cache plugins and SG Optimizer. Also, please leave some example URL to allow us to check the issue.Β 

Reply
Posts: 22
Topic starter
(@willybob)
Eminent Member
Joined: 4 years ago

Hi, thanks for your answer.

We use Memcached, Opcache and WP Rocket.

Emptying all caches and or desactivating them at all does not solve the issue.

Increrasing how many comments par page you setup inΒ Dashboard > Settings > Discussions admin page to reach a significant amount which is higher than the number of comments posted in a specific post helps to avoid the duplication, but does not solve the issue.

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

@willybob,

Could you please send the admin login details to info[at]gvectors.com email address? I'll ask the developers to check the issue for you.Β 

Reply
Posts: 22
Topic starter
(@willybob)
Eminent Member
Joined: 4 years ago

Sorry for the delay,

details sent by email

Reply
2 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

We'll check and back to you asap.

Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

@willybob,

The issue comes from the caching system of your website. It has a very hard cache. Please deactivate all cache plugins and check again. If the issue doesn't solve then you have a server-side cache system. You'll need to contact the hosting support.Β 

Reply
Posts: 22
Topic starter
(@willybob)
Eminent Member
Joined: 4 years ago

Thanks for your feedback

We narrowed down the issue to Memcached, will keep working on making it and Wpdiscuz work together.

Reply
Posts: 22
Topic starter
(@willybob)
Eminent Member
Joined: 4 years ago

The same happens with Redis Cache, it's not a memcached issue.

We investigated with both sides, it all comes back to a Wpdiscuz issue. Everything else works fine.

Reply
3 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

@willybob,

In the case of the Comments lazy loading and Load More function the WordPress native SQL codes are being executed. Each time the code works, the parameters are different, so no chance to work with that kind of caches.

At least they can provide a way to exclude the files, so it may chance to work with those plugins.

Reply
(@pagna)
Joined: 4 years ago

Active Member
Posts: 15

@asti Hi,Β 

What kinds of files need to be excluded from cache system?

Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7617

Please follow this topic: https://wpdiscuz.com/community/troubleshooting/double-comment-section-in-learndash-lesson/#post-9977

Reply
Share: