Posted on Aug. 29, 2006 at 00:11 +0200
Tagged with caching, development, django, python, rubyonrails
For the last couple of days I've been playing around a little bit with Django, a RubyOnRails like webframework written in Python. Sure, you can compare it to RoR if you want, but in my opinion it has enough unique features to set it apart from the Ruby framework. One thing I'm so far missing though from Django is some of the caching functionality from RoR.
Django offers 3 types of caching (from what I've learned so far):
-
Caching of a whole site
-
Caching of single views
-
Caching of single variables
All nice and good, and I really like how this seems to be done, but I'm somehow missing a way, to explicitly expire a cached view. Think about following scenario: You have a weblog with posts on it, your frontpage holds a list of the latest posts in a teaser-like view which also includes the number of comments made to each post. This count at the end of the day isn't really all that important, so you simply cache the whole page for let's say 10 minutes.
[more ...]