Add a hook for CloudFlare file purge
-
I am coming across a problem since I use this plugin along with CloudFlare; my images are being cached so when I replace an image it looks as if nothing happened.
The solution is to purge the file after replacing it, however this can be laborious. I can use the API to do this automatically however I’m not sure if you have a hook I can add an action to, which is triggered after the file has been replaced?
I’m thinking of something like this: https://www.bhagwad.com/blog/2013/technology/using-php-with-wordpress-to-purge-a-single-file-from-cloudflare.html/
Please advise if there is currently a hook, or if you could add it to a future version? Thanks.
https://www.ads-software.com/extend/plugins/enable-media-replace/
- The topic ‘Add a hook for CloudFlare file purge’ is closed to new replies.