Adding cleaning rule when reaching maxCachedObjects.