Maybe we could avoid an unnecessary SQL query by using `page_id` instead of the fetched `Page` object.  This would become:
```python
delete_cache_key(self.placeholder._get_attached_objects()[0] if self.placeholder.page_id is None
                 else self.placeholder.page)
```