Caches comment count in a django project.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
comment_counter
.gitignore
AUTHORS
LICENSE
README.md
setup.py

README.md

This app caches comment count in a django project. It contains a replacement for get_comment_count template tag.

Counters are stored in cache with long lifetime and are updated by signals. Custom comment backends and moderation are supported.

To enable this application add comment_counter to INSTALLED_APPS and replace {% load comments %} with {% load comments_with_cache %}. That's all.

You can customize cache timeout by defining COMMENT_COUNTER_CACHE_TIMEOUT in settings.py. The default timeout is one week.