diff options
author | admin <devnull@localhost> | 2006-10-06 00:18:11 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-06 00:18:11 +0200 |
commit | a0564c0c6b8814b8c0e5c1b516e26711deb326a5 (patch) | |
tree | d72ae395f6262c6101b504ca6e9d202e0236c231 /system | |
parent | 386ec187efc7c713b37f0155c9b81e1693e2689b (diff) |
Diffstat (limited to 'system')
-rw-r--r-- | system/database/DB_cache.php | 12 |
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); |