implemented indices clear cache API