renamed CACHE_SIZE_LIMIT to sizeLimit since it's not a pre-defined constant