added clear cache functions