-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
I want to add a route that can be used to delete a cache entry, so that next time that specific cache route is called it will re-fetch the content.
However, it doesnt really work:
- I call the route
/get/foothat iscachedfor 1h - I delete the entry
/get/foo:cache.del('/get/foo'). The callback return value says1: OK - I call the route
/get/fooagain, strangely the response code is304even though I deleted the cache entry - I call the route
/get/fooagain, and again and again and it is always status304 - If I try to delete again the cache entry with
cache.del('/get/foo')it returns 0, event though I called that same endpoint multiple times after deleting the entry - If I do
cache.get((err, entries) => console.log(entries))at that moment, it shows no entry
It seems after you delete an entry once, it just never shows again? we can never delete it again? or is it not how to delete entries manually?
Metadata
Metadata
Assignees
Labels
No labels