Fix CacheKey generation error during cache:clear