Skip to content

Improved Query Caching

World Wide Web Server edited this page Jul 4, 2012 · 30 revisions

The way CodeIgniter does Query Caching (namely Controller-based caching) [b]works fine with small and decentralized pages[/b] where all controllers are pretty much independent. But as soon as you have a [b]model that's shared[/b] by a handful of controllers, you [b]end up with a big mess[/b].

Just take a model for generating the data for a tag cloud that's displayed on every page. You would end up with dozens of duplicates and handling those caches would suck as hell.

I got pretty sick of this and thus I of re-wrote pretty much CI's entire caching storage mechanisms. Using my code CI now supports [b]several[/b] different ways to cache database queries.

See this [url=http://codeigniter.com/forums/viewthread/78146/]topic[/url] for ongoing discussions.

And this [url=http://code.google.com/p/improved-query-caching/]Google Code Project[/url] for documentation and source code

Clone this wiki locally