Cache for the homepage

I’ve now implemented a cache for the expensive parts of the homepage using Cheetah Templates. It was a bit of a pain to set up because I needed to make sure there was a separate cache for each of my threads. However the net result is that homepage renders in 6 ms instead of 176 ms!

This is on my laptop in development mode, it should be a bit faster on the real server in production mode. I’m also now getting to the stage with the homepage that CherryPy is becoming significant so the next stage of optimisation would be to upgrade to version 3 but there’s no need for that right now

Leave a Reply

You must be logged in to post a comment.