Enable Media Replace
Amendment to my update (CloudFlare) (1 post)

  1. rubious
    Posted 2 years ago #

    Hi Måns,

    You very kindly added a hook for me so that I could use a custom CloudFlare purge function, however the hook you added only gives the GUID of the main image, I've found it can be improved if it is replaced with this:

    do_action("enable-media-replace-upload-done", $_POST["ID"]);

    So I get the ID of the attachment, I can then use that to get all the sizes and purge them all.

    Could you please make this change in your plugin? Otherwise each time it updates I have to edit it again.

    Shaun (Rubious)


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Enable Media Replace
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.