FR: ImageCache force purging


Hi Jules,

Would it be possible to add a way to force the cache purge in ImageCache ?



Yes, good request, thanks!


Thanks !


It looks like the implementation is not the right one.

It shouldn’t clear all images, but only the one that are not referenced anymore, no ? (getReferenceCount() <= 1)
At least that’s what I had in mind with my request



Jules ?


Sorry, didn’t see your post… Er… yes, that probably does make more sense, will take a look at that.