Skip to content

API for clearing/removing cached images #237

Discussion options

You must be logged in to vote

The problem with a clear option is that it’s potentially expensive and should be non-blocking. That’s why clearing was always left as an implementation detail of whatever site is using the middleware. I don’t think a reasonable implementation can be added.

If someone wants a clearable cache I would suggest they implement the cache interface and use their own logic

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ronaldbarendse
Comment options

@JimBobSquarePants
Comment options

@ronaldbarendse
Comment options

Answer selected by ronaldbarendse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants