Why query cache do not work? |
"Configured database connection has cache enabled. Aborting."
This is my problem. I use this guide http://www.codeigniter.com/user_guide/da...ching.html for set the query cache and this is my database.php Code: $active_group = 'default'; The cache/site is writable... I would not know what might depend. Thanks for your reply ![]()
Did you try giving it a username, password and database name?
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
You can't use the database driver for sessions on a database connection which has the cache enabled. So, you would either need to configure a second database connection with cache enabled to be used by the rest of your application, or selectively enable query caching when you want to use it, using $this->db->cache_on() / $this->db->cache_off().
(09-13-2015, 02:11 PM)InsiteFX Wrote: Did you try giving it a username, password and database name? Obviously, the data have been removed ahah (09-14-2015, 09:21 AM)mwhitney Wrote: You can't use the database driver for sessions on a database connection which has the cache enabled. So, you would either need to configure a second database connection with cache enabled to be used by the rest of your application, or selectively enable query caching when you want to use it, using $this->db->cache_on() / $this->db->cache_off(). Thanks for the reply ![]() ![]() |
Welcome Guest, Not a member yet? Register Sign In |