Photon: Please add flush cache option OR bypass in template
-
I am using the Oxygen theme with a custom child theme. One image size produced is 470 x 140 (from FEATURED) which is used on the front page and archive pages. Sometimes I’m not happy with the resulting resized image, so I manually edit the image and reload the revised image, overriding the WP-resized image. However, Photon does not recognize the new image as it seems it grabs and caches images immediately.
I need to be able to do one of the following: [1] flush the cache so Photon grabs the new image(s) [2] edit something related to the image either through the media library or the post itself and have Photon recognize something has changed, thereby grabbing the changed image [3] bypass Photon altogether in the templates where this image is called.
[1] I understand Photon caches images forever and will never update/flush. That’s a shame. An option to flush would be great, even if it’s limited to once daily, or only for images uploaded in the last 24 hours as an option.
[2] I have tried many tricks… like deleting the current featured image permanently & uploading a new featured image with a different image name, but it seems Photon is also attached to the post name or ID and refuses to show anything but the old cached image.
[3] I have tried changing from the theme’s get_the_image calling the featured image to using the_post_thumbnail(array(470,140) and the_post_thumbnail(*sizeNameHere*) to avoid Photon, but that doesn’t work. Maybe implementing the snippet referenced in this post might work, but the advice “[go] construct some logic” and showing the single line of code isn’t helping much with it’s implementation. How is this to be implemented?
I would just like to show my updated image(s) without turning off Photon for the entire site. This “all or nothing” deal isn’t working out well. Is there a solution available now?
Thank you.
- The topic ‘Photon: Please add flush cache option OR bypass in template’ is closed to new replies.