![]() |
Re-writing db caching to use Memcached instead of disk? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Re-writing db caching to use Memcached instead of disk? (/showthread.php?tid=22849) |
Re-writing db caching to use Memcached instead of disk? - El Forum - 09-22-2009 [eluser]Daniel H[/eluser] Hi, I was just wondering whether anybody has attempted to re-write the db caching mechanism to use Memcached instead of writing the queries to disk? If you have, would you be able to share your code? Dan. Re-writing db caching to use Memcached instead of disk? - El Forum - 09-22-2009 [eluser]Phil Sturgeon[/eluser] Have a pop at this one yourself. Just open up DB_cache.php and modify read(), write(), delete() and delete_all() to use the memcache functions. If you could do it in a way that would support both via a config option, who knows, they might even commit it to the main codebase. |