Welcome Guest, Not a member yet? Register   Sign In
APC cache not falling back to file cache if unavailable.
#1

[eluser]Unknown[/eluser]
So in my development environment I've been using APC caching like so:

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

Which according to the docs should use APC, but if it can't use APC it will fall back to using file caching.

Well when I uploaded all my code to production (hosted by HostGator) I find out they don't support APC... and instead of falling back to the file method this is what happens:

Fatal error: Call to undefined function apc_store() in /public_html/system/libraries/Cache/drivers/Cache_apc.php on line 59




Theme © iAndrew 2016 - Forum software by © MyBB