• Hi Brajesh, I have my website hosted with WP Engine, who employs a significant amount of caching. This has resulted in the Notifications Widget not clearing once the “[X] clear notifications” is clicked. Initially it looks like it clears, then when the page is reloaded or the user navigates to a new page it reappears with the same notifications.

    WP Engine asked if there is a cookie that is set once it’s cleared so they could exclude it from the cache. Does the widget use cookies or anything else that may offer a solution?

    On the desktop layout the clearing issue isn’t a big deal, but on the mobile version it cause a some layout issues. My BuddyDev membership lapsed a few days ago, but thanks for all your plugins and support!

    Current Versions of WordPress Multisite and BuddyPress.

    https://www.ads-software.com/plugins/buddypress-notifications-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    Thank you for reporting the issue.

    Currently, I am not setting any cookie for the plugin as I personaly don’t think that will help our purpose.

    What I am thinking is loading the notifications via ajax when a user loads a page. So, when a page is loaded, we may show a loading icon in the widget and then the notifications can be loaded. This will allow us to overcome the caching issue and should not cause much load on the server. What do you think of this approach? Should i go ahead with it?

    Thank You
    Brajesh

    Thread Starter BackpackersUnion

    (@backpackersunion)

    That sounds great to me! I also ran it past the WP Engine team, who responded;

    “The idea of loading the notifications thru Ajax would be a great workaround to the caching issue,…”

    So, if you’re able to implement that as the fix, that would be incredible! Let me know if there is anything I can do to help on my end.

    Also, thanks for responding so quickly, as I know you are very busy! Much appreciated!

    Regards,
    Carl

    Thread Starter BackpackersUnion

    (@backpackersunion)

    Hi Brajesh, I just re-upped my BuddyDev subscription, so I can interact with you on the forums there if that’s easier for you. Just let me know whichever is best.

    Thanks again for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notifications Not Clearing – Caching Issue (Does it use cookies?)’ is closed to new replies.