Actually, this line should not be changed at all.  We still need to check that the user wants that format cached.   I was saying that if you wanted to change what is cached to involve the tasty pie setting, then you could just override the method self.valid_cache_formats()