Code Igniter User Guide Version 1.5.0


Database Caching Class

The Database Caching Class contains functions that permit you to cache your queries.

Important:  This class must be initialized independently since it is a separate class from the main Database class. More info below...

Initializing the Caching Class

To initialize this class please use the following code:

$this->load->dbcache()

You can also autoload this class from within your config/autoload.php file by specifying dbcache in the $autoload['libraries'] array.

Once initialized you will access the functions using the $this->dbutil object:

$this->dbcache->some_function()