Cache Decorator
A cache decorator.
- caching
A cache decorator.
This attaches a signal to the save and delete signals for the Vote object and recalculates the score for the object and stores it in that object's vote_score attribute. This allows you to have a list of those objects and not have to calculate in the database the vote score for each object.
This describes an issue with the template system that people may come across.
Allows you to add args and kwargs to the signal reciever
ericmoritz has posted 4 snippets.