• Resolved bibberle

    (@bibberle)


    Hello,

    I have all of my post preview cards cached in static html files. These preview cards also include the post thumbnails. In case of replacing a post thumbnail I’d need to call my “regenerate cache” function to renew the static html files.

    Is there a hook / action, that could help me after a file has been replaced?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi there!

    Sure: do_action("enable-media-replace-upload-done", $this->target_url, $this->source_url, $this->post_id);

    And in the plugin, classes/replacer.php, replaceWith function (last lines).

    I hope that helps!

    Thread Starter bibberle

    (@bibberle)

    SOLVED – THANK YOU!

    Plugin Support Gerard Blanco

    (@sixaxis)

    You are welcome 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Call renew cache function after media replace’ is closed to new replies.