added more logic around display on the cache detail page