Patch 1

Hello,

A few things to be able to clear the cache based on an options specifying size that trigger the cleraing...

Tell me what do you think of that!

Pascal