Hello anybody,
I found the following bug.
If the user adds/changes/deletes the image should happen clearing the cache for the images styles.
I looked image_path_flush and found $path via "public://styles/thumb24x24/public/profile-images/2.jpg".
But my images is cached in the following paths:
public://styles/thumb24x24/public/profile-images/1382/2.jpg
public://styles/thumb24x24/public/profile-images/992/2.jpg
public://styles/thumb24x24/public/profile-images/768/2.jpg
public://styles/thumb24x24/public/profile-images/480/2.jpg
because i have next Resolutions "1382, 992, 768, 480" on /admin/config/media/image-styles/edit/thumb24x24/effects/26.
So the following conditions are never satisfied in image_path_flush($path) (modules/image/image.module).
if (file_exists($image_path)) {
file_unmanaged_delete($image_path);
}
Can help me the author of module or anyone?
Thanks.
Comments
Comment #1
Ruslan PiskarovComment #2
Ruslan PiskarovI suggest this patch to solve this bug.
Comment #3
Ruslan PiskarovHello, @sanduhrs.
Can you look the my path?
Thank you ))
Comment #4
Ruslan PiskarovI am attaching a new path, more better.
Thank you very much.
Comment #5
Ruslan PiskarovThe same in https://www.drupal.org/node/2147963