summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-06 00:18:11 +0200
committeradmin <devnull@localhost>2006-10-06 00:18:11 +0200
commita0564c0c6b8814b8c0e5c1b516e26711deb326a5 (patch)
treed72ae395f6262c6101b504ca6e9d202e0236c231 /system/database
parent386ec187efc7c713b37f0155c9b81e1693e2689b (diff)
Diffstat (limited to 'system/database')
-rw-r--r--system/database/DB_cache.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php
index 135be3ce9..344736c24 100644
--- a/system/database/DB_cache.php
+++ b/system/database/DB_cache.php
@@ -97,10 +97,10 @@ class CI_DB_Cache {
return $this->obj->db->cache_off();
}
- $uri = ($this->obj->uri->segment(1) == FALSE) ? 'base' : $this->obj->uri->segment(2);
- $uri .= ($this->obj->uri->segment(2) == FALSE) ? 'index' : $this->obj->uri->segment(2);
+ $uri = ($this->obj->uri->segment(1) == FALSE) ? 'default_' : $this->obj->uri->segment(1).'_';
+ $uri .= ($this->obj->uri->segment(2) == FALSE) ? 'index' : $this->obj->uri->segment(2);
- $filepath = md5($uri).'/'.md5($sql);
+ $filepath = $uri.'/'.md5($sql);
if (FALSE === ($cachedata = read_file($this->obj->db->cachedir.$filepath)))
{
@@ -125,10 +125,10 @@ class CI_DB_Cache {
return $this->obj->db->cache_off();
}
- $uri = ($this->obj->uri->segment(1) == FALSE) ? 'base' : $this->obj->uri->segment(2);
- $uri .= ($this->obj->uri->segment(2) == FALSE) ? 'index' : $this->obj->uri->segment(2);
+ $uri = ($this->obj->uri->segment(1) == FALSE) ? 'default_' : $this->obj->uri->segment(1).'_';
+ $uri .= ($this->obj->uri->segment(2) == FALSE) ? 'index' : $this->obj->uri->segment(2);
- $dir_path = $this->obj->db->cachedir.md5($uri).'/';
+ $dir_path = $this->obj->db->cachedir.$uri.'/';
$filename = md5($sql);