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

Are there any way to remove a pic from the cache manually? #74

Closed
kleisauke opened this issue Feb 12, 2017 · 2 comments
Closed

Are there any way to remove a pic from the cache manually? #74

kleisauke opened this issue Feb 12, 2017 · 2 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@kleisauke
Copy link
Member

Are there any way to remove a pic from the cache manually? [7077457]

Submitted by Marcsello on 10-2-2015 0:00:00
2 votes on UserVoice prior to migration

I wrote a very simple photobook application which generates thumbnails using this service, but some of the images messed up for the first time, so I re uploaded them at the same name, but weserv still serve the old one due to cached, are there any way to update the cached one.
I've read that the server removes the pic within 14 days if not requested. since my server stores the thumbnails to, it wont request it anymore from here. So after 14 day it will update it anyway. I'm just wondering are there any way to force it to delete?
The photobook: http://marcsello.com/content/150pony/photobook.php
It request thumbnial when new pic uploaded, or the old thumb removed over FTP

Response

by Andries Louw Wolthuizen on 4-2-2016 0:00:00

Update:
This feature is planned, but it needs additional code to delete images from the different caches. Currently it isn’t exactly clear when this will be implemented. I will update this idea when I have more info.
Original answer:
It’s very hard to delete individual thumbnails; we don’t keep track of the individual url’s requested (or any other userdata).
Please try to use some differentiator in your url’s for future testing; caching is done at quite high level, so even using something like images.weserv.nl/?test=12345&url=… should work.
I hope this answers your question!

Comments

Comment by Marcsello on 10-2-2015 21:44:00

Thank you so much, you didn't had to rebuild the whole cache for me. I was just wondering about the possibilities. And yea It solved, thank you.
I've added another parameter to the url which contains the upload time of the original file, for further requests.
Now all my ponies looking nice, thank you :)

Original UserVoice Submission

@kleisauke kleisauke added the planned Feature or request is planned label Feb 12, 2017
@andrieslouw
Copy link
Member

See #14

@andrieslouw andrieslouw added duplicate This issue or pull request already exists and removed planned Feature or request is planned labels Mar 28, 2017
@andrieslouw
Copy link
Member

See #14 for follow-up, will mark this as duplicate.

@andrieslouw andrieslouw added the question Further information is requested label Mar 28, 2017
andrieslouw added a commit that referenced this issue Sep 24, 2018
First Proof-of-Concept for front-end for Cache Removal Tool ( #14 , #159 , #74 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Development

No branches or pull requests

2 participants