added auto clear cache for flux