Likes dynamic refreshing
-
Hi,
First of all, thank you for creating such a great plugin – Posts Like Dislike is an excellent tool, lightweight and very useful. I really appreciate your work on it.
However, I noticed one limitation that can be confusing for users: the like count does not update dynamically after clicks the like button (temporarily is, for example, it changes from 0 to 1, but when I refresh the page I see 0). Even though the action is registered and saved (I can confirm the count updates correctly in the backend), the number displayed on the frontend doesn’t change until the cache clears (The user has to wait for their cache to refresh. When I am logged in as WP Admin, I can see the changed value right away).
This behavior becomes especially noticeable in the following scenario:
- On Device A, I click the “like” button. The count changes from 0 to 1.
- If I check the post in the admin panel, I can see the updated count.
- But on Device B (another user or incognito session) or on Device A after refreshing page, the count still shows “0” – even though it’s already updated in the database.
- The counter only reflects the new value after a delay (likely due to caching or lack of dynamic fetching).
This can create a confusing experience for users who don’t see immediate feedback. I understand the plugin uses cookie or IP restriction for vote tracking, but it would be really helpful if the like count could update via AJAX, fetching the live value after someone votes.
Would you consider adding an option to:
- Automatically update the counter on click via AJAX?
- Or provide code / JS method to refresh the counter?
Thank you again for all your work! Looking forward to future updates.
Best regards,
Filip
The topic ‘Likes dynamic refreshing’ is closed to new replies.