CodeIgniter Forums
memcached help - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: memcached help (/showthread.php?tid=71369)



memcached help - scottdogs - 08-06-2018

HI, I am wanting to use memcached and fall back to file based caching. I currently use file based caching but are finding for large high traffic sites it just shifts load from the DB to the filesystem.

I have noticed that when you use

$this->load->driver('cache', array('adapter' => 'memcached','backup' => 'file'));

and then use the functions like

$this->cache->save() and $this->cache->get()

it always uses file based caching and to use memcached I am having to recode my functions to instead use

$this->cache->memcached->save() etc

Is this intentional? or a bug?

cheers
Scott.