From 39b622db9bda38282a32bb45623da63efe685729 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 16 Jan 2008 21:10:09 +0000 Subject: Many new Active Record functions, and another whack of stuff --- system/database/DB_cache.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'system/database/DB_cache.php') diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php index 1e7410708..77b951500 100644 --- a/system/database/DB_cache.php +++ b/system/database/DB_cache.php @@ -63,14 +63,12 @@ class CI_DB_Cache { // Add a trailing slash to the path if needed $path = preg_replace("/(.+?)\/*$/", "\\1/", $path); - - if ( ! is_dir($path) OR ! is_writable($path)) + + // Load the file helper + $this->CI->load->helper('file'); + + if ( ! is_dir($path) OR ! is_really_writable($path)) { - if ($this->CI->db->db_debug) - { - return $this->CI->db->display_error('db_invalid_cache_path'); - } - // If the path is wrong we'll turn off caching return $this->CI->db->cache_off(); } -- cgit v1.2.3-24-g4f1b