Hey guys,
I have been working with CI now for a couple of months for my startup and we thought we’d start putting out some of our code for community review. So far the community has been great, and we’ve really not had anything substantial to contribute until now. So here’s a little something something we’ve been using. Let us know if you guys see any improvements, and feel free to leave suggestions.
We are planning on putting up a git repository on our website at http://code.zinkkinc.com/ but I have not had the chance to do so yet. If all goes well I’ll have that going by Monday morning, and we’ll have a proper place to display our contributions.
Memcache Replacement for Standard DB Disk cache
As I said above we work with heavy database applications and we are always looking for ways to speed up our web applications’ queries. So I took a couple of hours and rewrote the release version of DB_cache.php to use memcache where available, and if not fall back to disk caching. I’m attaching the file to the post, and the only thing that you have to is add the following entry to your database configuration:
$db[‘default’][‘mc_hosts’][] = array (“ip”=>‘127.0.0.1’, “port”=>11211);
If you find any bugs, have any questions, or find a better way to do something feel free to reply to the thread, or shoot me an e-mail jb at zinkkinc.com. Thanks all, we’ve had some awesome fun with CI and hope to be able to contribute to everyone.
