Improved cache middleware for Django.