Suor / django-cacheops

A slick ORM cache with automatic granular event-driven invalidation.
BSD 3-Clause "New" or "Revised" License
2.11k stars 227 forks source link

Feature proposal {% nocache %} template tag #132

Open rtpm opened 9 years ago

rtpm commented 9 years ago

Would be nice if we could exclude some parts of cached template content .. from caching.

{% cached_as ... %} some cached content {% nocache %} some content that we do not want cached {% endnocache %} Continuation of cached content {% endcached_as %}

There's a project : https://github.com/twidi/django-adv-cache-tag/tree/master/adv_cache_tag

which has this functionality.

Suor commented 9 years ago

This could be useful, but I don't have time to implement it now, so I'll postpone it. I will review and accept any pull requests toward this though.