Modify expire_cache_for method to clear cache in all threads