corrected the broken way we where getting the max size of the cache.