update cache size from the setting