summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-21 19:49:47 +0200
committeradmin <devnull@localhost>2006-10-21 19:49:47 +0200
commit9fcc28a29299fbbc242f87bf1b1e61fda6543886 (patch)
tree4256b0fb41fc86de53ab626299a85032a1f60028 /system/database
parentae3fbabe663d4f5f853e511b2e4619553787d3ad (diff)
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_cache.php2
-rw-r--r--system/database/DB_driver.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php
index 86493e77c..aee5ce6fa 100644
--- a/system/database/DB_cache.php
+++ b/system/database/DB_cache.php
@@ -171,7 +171,7 @@ class CI_DB_Cache {
$segment_two = ($this->CI->uri->segment(2) == FALSE) ? 'index' : $this->CI->uri->segment(2);
}
- $dir_path = $this->CI->db->cachedir.md5($segment_one.'+'.$segment_two).'/';
+ $dir_path = $this->CI->db->cachedir.$segment_one.'+'.$segment_two.'/';
delete_files($dir_path, TRUE);
}
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 848d4f1c6..a24bd20d8 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -236,6 +236,7 @@ class CI_DB_driver {
{
if (FALSE !== ($cache = $this->CACHE->read($sql)))
{
+ $this->load_rdriver();
return $cache;
}
}