Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    I am facing the same problem. I have opened another thread here : https://wordpress.org/support/topic/not-working-with-wp-super-cache-3/

    I hope this issue get’s resolved soon @donncha 🙂

    Also, @webtechideas is the author of the amazing WTI Like Post plugin

    Thanks,

    Best Regards.

    @webtechideas – You need to load the votes using JavaScript rather than having them written to the page by PHP code. I see that voting is done through admin-ajax. You’ll need to do something similar to fetch the votes in the first place.

    The whole page is cached which is why the votes are cached. The plugin can do “dynamic caching” but it’s complicated to set up and caching won’t work as well.

    Thread Starter webtechideas

    (@webtechideas)

    Thanks for the input. We are using the_content hook to populate the voting section with count details as per wordpress standard.

    You have mentioned to load the voting section using javascript so that’s possibly by making ajax call after page load. Please take a look at the following to confirm the approach you have referred.

    1. Let’s assume user is on blog listing page where there are 10 posts.
    2. Make an ajax call after page load passing all the relevant post ids present on the page to get the voting data.
    3. Once response is received, populate each voting section with their respective response.

    The response is expected to be heavy when we have so many posts to consider. Also, making individual call for each post will need multiple ajax calls. Can you please suggest something better?

    Thanks

    Hello,
    I can understand. Do you suggest any alternative, the best one I found about is WPUlike.
    https://wordpress.org/plugins/wp-ulike/
    And I think that it uses ajax to do what wp-super-cache developer suggested.
    Also, can you help in migrating the database from your plugin to other plugins like WPUlike ?

    Thanks,
    Best Regards.

    Plugin Author Donncha O Caoimh (a11n)

    (@donncha)

    @webtechideas and ajax call is the best way. Unfortunately there’s no other way around this. You could perform caching of your own in your plugin so at least untouched ratings aren’t regenerated.

    @rajthakur7 – you could try the ratings widget from Crowdsignal. That’s loaded by Javascript and works perfectly on cached pages. https://crowdsignal.com/support/rating-widget/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Caching issue with WTI Like Post plugin’ is closed to new replies.