Closed (fixed)
Project:
ImageCache
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2009 at 12:08 UTC
Updated:
2 Jun 2012 at 22:25 UTC
Could someone point me in the right direction for force refreshing the image on a Node after returning to Node page from saving the Node Edit.
I am seeing the issue of an image not refreshing to its newest version (I'm using imagefield crop). It might be because drupal is caching the older image. I see that a force-refresh of the Node updates the image correctly.
I have entered this question in imagefield crop queue as well.
Comments
Comment #1
espenmoe commentedI have the same question.
Comment #2
gregglesI think this is more of an apache issue than it is an imagefield_crop issue.
One solution is to append a ?edit_timestamp on the end of the filename if the node since Apache and the browser will interpret that as a new file with new properties. But if that happened it should really happen in imagefield/imagecache.
Comment #3
quicksketchWe're already doing this in the ImageField formatters on the front-end display and on the back-end administrative thumbnails. As far as I know, ImageField Crop edits and overwrites the original file correct? When it does this, it should update the "files" table with the "timestamp" column, which will automatically have the requested effect on the rest of the site, since ImageField uses this value when displaying images to append a timestamp, as greggles said in #2.
Comment #4
gregglesInteresting. The code has:
And #353405: Need help with imagefield_crop 6.x implementation looks like it's been "closed" as of a while ago. So, I guess this issue needs more info to see if it's still valid.
Comment #5
gregglesAlso, big thanks for the pointers/explanation, quicksketch!
Comment #6
robby.smith commentedHello,
I'm using views and the image is not being updated on the views page.
Steps: I go to node edit, change the crop area of the image, save, which redirects me to the views page. The image is not updated to the new cropped area. Forcing Refresh on the browser will then show the new cropped image.
#787268: image not being refreshed on views page was just marked as a duplicate about this issue with views.
I'm using all the latest devs. I opened the issue at views and was told to ask here.
I'd really appreciate your help!
Thank you
Comment #7
gregglesSo, I now believe this to be an imagecache issue.
If I use the field display mode of "Image" (on admin/content/node-type/image-node/display) then this problem goes away. But if I use an imagecache preset formatter it does not work properly.
I guess that theme_imagecache_formatter_imagelink and theme_imagecache_formatter_linked could both take advantage of adding a query string with the file timestamp.
@drewish - any thoughts?
Comment #8
bramface commentedSubscribe
Comment #9
robby.smith commentedThanks for the good info greggles. I confirm the same on a frush Drupal install
I hope this can be looked into. Appreciate it!
Comment #10
fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.