Simple Cache for CodeIgniter is a simple and easy to use caching system for CodeIgniter applications. It was designed to be as simple as possible in it's implementation and has successfully been used on muses-success.info. It's main purpose is to cache arrays of data that was originally retrieved from a database in order to decrease database load. It's really just a simple key value store that uses flat files (support for memcached is planned to allow a simple switch-over should the application outgrow the file based cache).
It was built to get around the limitation of CodeIgniter 1.7 that had the built in caching tied either a complete template or a database query which limited re-use and the ability to only partially cache a page's data.
CodeIgniter 1.7 and up (including 2.0+). It may work with older versions but these have not been tested.
Drop into your CodeIgniter application's Library directory and ensure that the cache directory within the system directory (application directory in 2.0) is writeable. It is strongly recommended that this directory is located outside your web root.
GNU General Public License V3.
Christopher Clarke (chris@cclarke.me)
Christopher Clarke (simplecache@cclarke.me)
You can download this project in either zip or tar formats.
You can also clone the project with Git by running:
$ git clone git://github.com/chrisclarke/Simple-Cache-for-CodeIgniter