clear caches for thread