Database Caching problem

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?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.