CodeIgniter Forums

Full Version: memcached help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.