Welcome Guest, Not a member yet? Register   Sign In
Autoload cache drivers
#2

[eluser]PhilTem[/eluser]
You can't load the cache driver multiple times. If you do

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

in your MY_Controller or the first library you will load it will be available to every library, model, helper loaded afterwards. Thus you don't need to repeat your code.

On another note: Yes, you can't autoload the cache driver, at least not to my knowledge - I tried it as well, didn't work.


Messages In This Thread
Autoload cache drivers - by El Forum - 10-24-2012, 07:26 AM
Autoload cache drivers - by El Forum - 10-24-2012, 07:48 AM
Autoload cache drivers - by El Forum - 10-24-2012, 10:07 AM
Autoload cache drivers - by El Forum - 11-05-2012, 11:50 AM
Autoload cache drivers - by El Forum - 11-06-2012, 01:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB