• Resolved RockYourBlog

    (@rockyourblog)


    Hey there,

    I have a caching problem with the recipe ratings on a client site. The ratings are not updated when someone rates the recipe without writing a comment.

    You can test it yourself. Rate a recipe and refresh the page => rating gone.

    After clearing the cache or while logged in (caching is disabled for logged in users), the correct number of ratings is displayed. When people rate a recipe via the comment function it also works, because the new comment triggers a cache refresh of the post.

    So what exactly do I need to exclude from caching to get rid of this issue? A server-side cache (NGINX) is used.

    Cheers
    Philipp

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brecht

    (@brechtvds)

    Personally, I would recommend just leaving it as is. The rating gets counted and will automatically show the next time the cache clears, which I assume happens periodically?

    Otherwise you’d have to hook into the API endpoint and force the cache to refresh that way.

    Thread Starter RockYourBlog

    (@rockyourblog)

    Hey Brecht,

    I thought about it again and you’re right. I have now slightly adjusted the times for the recurring cache refresh of blogposts with recipes in it. That should do.

    Thanks!

    Cheers
    Philipp

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Recipe ratings and caching’ is closed to new replies.