Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageCache.removeAllImagesForRequest() aka. glob/wildcard #105

Closed
neoneye opened this issue May 6, 2016 · 1 comment
Closed

ImageCache.removeAllImagesForRequest() aka. glob/wildcard #105

neoneye opened this issue May 6, 2016 · 1 comment

Comments

@neoneye
Copy link

neoneye commented May 6, 2016

First of all AlamofireImage is awesome.

My code looks like this

let size = imageView.frame.size
imageView.af_setImageWithURL(
    url,
    placeholderImage: placeholderImage,
    filter: MyFilter(size: size),
    imageTransition: .CrossDissolve(0.2)
)

Often I would like to remove all images for a particular url, because the user have performed a destructive action, that may invalidate thumbnails.

Internally the identifier that it's being used is http://example.com/thumbnail/42-MyFilter-size:(60x60)

I would like to remove everything that starts with http://example.com/thumbnail/42

@neoneye neoneye changed the title ImageCache.removeAllImagesForURL() ImageCache.removeAllImagesForRequest() May 6, 2016
@neoneye neoneye changed the title ImageCache.removeAllImagesForRequest() ImageCache.removeAllImagesForRequest() aka. glob/wildcard May 18, 2016
@cnoon
Copy link
Member

cnoon commented Jun 4, 2016

Hi @neoneye, I'm going to close this issue out. Let's redirect all future comments to #106.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants