problem: cacheing
Wednesday, June 11th, 2008In the recent application that I am building, I am trying to increasingly cache content, so that the site can support more users and have a faster response time. I am pretty impressed with how easy it is to cache using the built in ruby on rails helpers. Integrating ruby with memcache is a different story. I like it, but it the client does not seem to be as fail proof as I would hope. Anyways, there is an interesting problem that is created when caching content. The content that is cached cannot be personalized if you really want to see some performance benefit. In other words, why would you want to have a cached version for every user personalized for them?
I have had always thought that it was ok to wait until the end of a project to implement your cacheing, but I found that you need to keep in in the back of your mind the whole time. We are going to have to write some front end code to recreate the personalized aspects of the site. I wish that we would have just done that from the start.
Has anyone else have any cacheing design ideas or gotchas?