Invalidating query cache entries table