You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your feedback. Yes, to clear the cache it's currently the case that you need to delete the generated images. This is (kind of) by design, although I did think it might be nice to have a flush images command that could be run. I got torn between a few ideas on the best way to implement this for a user experience point of view.
Do you have any particular thoughts or ideas you'd like to share on how you'd like to clear the cache? A command? An HTTP endpoint that clears the cache? Something else?
Barry-Fisher
changed the title
Bug: cache is not cleared when image style settings are changed.
Clear cache strategy to delete generated files when settings changed etc.
Nov 5, 2018
I think the image filename should contain the hash of the variables that went into creating it. So when these variables change, the hash changes and the images are automatically invalidated and created a-new.
When image style settings (
imageStyles
) are adjusted after an image was generated, the changes are not reflected and a rendered image is served.Specifically, I changed from a
macro
toactions
and changed the dimensions of the image.Clearing the
static/image-styles
dir manually solves the problem of images being cached.The text was updated successfully, but these errors were encountered: