In my front page template I use the cache function like this:
{% cache 86400 my_posts %}
{% get_latest_posts %}
{% endcache %}
When there is a new post I would like to expire the cache key; like this:
def clear_post_cache():
cache.delete('my_posts')
post_save.connect(clear_post_cache, sender=Post)
My problem is that the cache key isn't accessible as 'my_posts'. How do I find the key name?