Add parseInt to normalize cacheSize and pageSize