added auto clear cache feature.