• Resolved Schnack

    (@schnack)


    Hi Jon,

    I have just installed your plugin and it looks like it should suit perfectly for what I’m trying to achieve, but I’m getting mixed results when adding and removing favourites.

    E.g. When I add or remove a favourite, then go to my Favourites page I don’t see that recently-added product. Nor can I remove a product by clicking the “Remove” button. The page appears to refresh, but there’s no change to the favourites list. Refreshing the browser window via F5 or Ctrl+F5 does nothing, BUT if I log in to the website under a different browser I see the correct listing of favourites with those products I have added and not displaying those I have removed. That is, until I go and add or remove favourites – in which case the favourites don’t list correctly until I try a completely different web browser again.

    That indicates to me some sort of caching issue, although I’m no expert coder so it’s only a guess. Can you think what could be causing this behaviour and how I could resolve?

    I am running WordPress 4.9.5, OXY theme version 3.4, WooCommerce version 3.2.6, WP Super Cache 1.6.0 and Simple WooCommerce Favourites version 1.0. There are other plugins installed too, so if your plugin is known to be incompatible with any in particular please let me know in case I have it installed too.

    Many thanks in advance.

    Kind regards,
    Dave

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Schnack

    (@schnack)

    Hi Jon,

    I have done further testing, and a log off and log back on under the same browser window refreshes the favourites listing correctly.

    Do you know what might be the issue in my case?

    Kind regards,
    Dave

    Plugin Author Jon Boss

    (@jonboss)

    Hi Dave,

    Apologies for the late reply on this one. I think you’re right on the money in thinking this is a caching issue. When you switch browsers – everything updates properly, which tells me your favourites are being updated in the database correctly, and the data is being pulled and displayed properly. The issue is that your cache is loading a generated HTML file, rather than regenerating the HTML to display. This can greatly help with speed, but is an issue for dynamic content like this. What I would first try is: disable WP Super Cache and see if the problem persists.

    If that fixes the problem, WP Super Cache does offer support for disabling caching for certain pages! If you simply disable page caching on the favourites page – that should solve your issue.

    Let me know if I can be of further help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding and removing favourites not refreshing’ is closed to new replies.