Fixing cache clearing for threads/indexes: cache key was wrong in deletion