implement cleanup command for cache table