CodeIgniter Forums

Full Version: Database Caching problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Hey everyone, I got a strange problem concerning Database caching:

My config looks like this:
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "system/cache/";

When caching is turned off
$db['default']['cache_on'] = FALSE;
I can see in the debuging information that the query is sent, but it doesnt return any values, allthough it should. When I use my mysql tool and send that query by hand I get data as expected. This behaviour is the same whether the caching folder is empty or not...

The funny thing: when I turn caching on
$db['default']['cache_on'] = TRUE;
the same query is sent (at least once when the cache folder is empty) and I get data as expected. I ve already checked my code and have never activated or deactivated caching at any other point of the script...

I am using the active record database class to send my queries, dont know if thats important...

My problem is that I need it to work with caching turned off...

Any suggestions?