Professional Freelance Web Developer
CodeIgniter Activist, Caffeine Junkie

Elliot Haughin

CodeIgniter Multicache Library 0.1

9th October 2007

After realizing that there’s quite a few people out there who are using Memcache or APC to cache content in their CodeIgniter applications, I figured it was time to build a nice library that takes care of that.

So, here is the release of Multicache 0.1
I haven’t really had time to test it yet, but I think the basic principle is right.

Essentially, I’ve built a caching abstraction layer for you so with a few config changes you can be using apc instead of memcache.
I do plan to test this thoroughly and add more cache type options to the mix.

But for now, check out CodeIgniter Multicache

Plans for future are:

  • Clean up code (less switch ($pararm) { )
  • Add more cache methods (file, db, etc…

All feedback/bug reports are very welcome. And suggestions to more cache engines would be great. This is really simple, but I’m going for the release early and simple method.

Related posts:

  1. CodeIgniter Vimeo API Library Released
  2. Building Web Applications That Scale
  3. CodeIgniter Twitter Library
  4. Optimizing and Scaling your CodeIgniter Application – with Benchmarks!

  • Par Lindhe
    Hi there, nice initiative indeed.
    I downloaded the lib and tried it out.
    It did not work for me until i changed

    Multicache.php:48

    if ( !empty($this->config['servers']) )

    to

    if ( !empty($this->config['memcache_servers']) )


    I hope I am not misunderstanding the code.

    Thanks!
  • Hey, I've fixed the download now... enjoy it!
  • Henrik
    Funny... it is very hard for me to download the file... and incidently I've done something very similar so I thought I could donwload your library and 'compare notes'.
  • I like to give a try to this, but something is wrong with the file download, each time i try to get it, i'm redirected to root domain.

    Fix it please, ;)
blog comments powered by Disqus

Boring Stuff

Design © copyright Elliot Haughin 2009

Content published here are copyright their respective owners.

You cannot copy content from this site, either in English or translated to another language.

Keep Subscribed

Theres lots of ways for you to keep up with me on the web.

Please Note

Information given out on this blog should only be used as a guideline. I hold no liability for any code I write.

Always consult a professional before acting on this guidance.