phlaix
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Image from plugin not updatingHi Kyle!
My hope was to not need an argument at all. I only use the cron for being lazy. There is no real need, since updates happen like twice per year, so I can also call the updater manually. So I’ll attach a simple sketch of how the plugin is built. (Yes, ugly since I’m a newbie on this, backend for updating things etc might follow, but it works for now).
So the plugin has two “main files”. One php-file (images.php) which gets called by using the shortcode in the frontend. And a second one which is only the updater (update.php). The updater uses cURL to grab the remote files defines in an XML and replaces the local ones. From my understanding after running the updater the frontend should just show the updated images. But it doesn’t. Why?
https://drive.google.com/open?id=1oRgYrD9_doWPAeXfQdQiawRdd-utaXO6og (I hope it’s understandable)
You can see the effect here:
https://infurnity.com/wp-content/plugins/phx_banner_slider/assets/banner/nordic_fuzz_con.gif
https://infurnity.com/wp-content/plugins/phx_banner_slider/assets/banner/nordic_fuzz_con.gif?v=2
Those will give you different images, tho only one is on the server. Question is why? That’s obviously server-side caching of some sort. This also happens to me when using a fresh system/browser.Cheers~