James RJ Constable

MongoDB Output Caching Library for CodeIgniter

Recently I’ve being experimenting with CodeIgniter’s built in web page caching mechanism to speed up rendering on an application i’ve been building at work. As an experiment I’ve overwritten the caching mechanism to cache to MongoDB rather than the file system. I’m assuming this will be faster but haven’t had time to do proper analysis yet. This post is really just to announce that the code is available over at GitHub.

The library overrides the existing cache handling but it syntactically compatible with the existing caching functions so you won’t need to alter your application code to use it.

Feel free to check it out and let me know your thoughts on it. I’ll write an update soon once i’ve done some reasonable testing to compare metrics.