add cleanup cache feature