small cleanups & corrections; flush param deleted, it is better to use cacheExpire = 1