Support » Plugin: Autoptimize » Action to remove Cache for current page

  • Resolved mattce

    (@mattce)


    Hi there,
    I’m using a comment voting script on my page. Unfortunately – as you probably know – new votings will not appear after page reload, because the page is still showing the older cached version.

    Is there a way to execute an action to remove the cache of the current page when a user clicks on vote?

    ‘Comments Like Dislike’ Plugin offers an action called

    do_action( 'cld_after_ajax_process', $comment_id );

    so maybe there is a way to force autopimize to empty the cache of the current site right after voting?

    Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Autoptimize doesn’t do page caching, only JS/ CSS/ HTML/ Google Fonts & Images optimization (depending on configuration off course). Additionally the Autoptimized CSS/ JS is not stored per page, but is normally used on multiple pages, so clearing the CSS/ JS cache for one page is not possible.

    So what page cache are you using?

    mattce

    (@mattce)

    Hi! I’m very sorry, you are absolutely right. I was confused but now I learned that there was a server side cache activated for this project. No one told me before 🙂 Sorry! I will close this task.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    no worries mattce 🙂

    feel free to leave a review of the plugin and support here! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Action to remove Cache for current page’ is closed to new replies.