-
-
Notifications
You must be signed in to change notification settings - Fork 123
URL manipulated images not updating when original file changes #25
Comments
At the Moment this is normal behaviour. Cache must be cleared no keep up with changed originals. Comparing the modification times Sounds like an interesting idea. Maybe there is a fast way to do that. |
That'd be great, I don't think it could affect performance that much running something like filemtime()... |
I'm afraid there is no quick solution. Intervention Image uses |
Added in 8e9df76. |
The old cached image file will live forever in the filesystem? It seems that way. Shouldn't it remove the old ones when the new is generated? |
Hello, it seems that URL manipulated images don't get updated when we make changes to the original file. Eg:
I call imagecache/135x135/images/test.jpg and I get a nice 135x135 thumbnail from my custom template.
But if I modify the original image...
Image::make('images/test.jpg')->greyscale()->save();
... and the hit again imagecache/135x135/images/test.jpg I'm going to get the exact same thumbnail as the beginning since it's going to load the cached version of the thumbnail, ignoring the changes on the original image.
Maybe it shouldn't load the cached version when its modification time is older than the original's file one.
Thanks for your time and effort with this package!
The text was updated successfully, but these errors were encountered: