numerous changes from DIR_WRITE_MODE to FILE_WRITE_MODE
chmod operations on files were using the DIR_ constant permisisons
diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php
index 8b0ad4f..f01bc82 100644
--- a/system/database/DB_cache.php
+++ b/system/database/DB_cache.php
@@ -146,7 +146,7 @@
 			return FALSE;
 		}
 		
-		@chmod($dir_path.$filename, DIR_WRITE_MODE);
+		@chmod($dir_path.$filename, FILE_WRITE_MODE);
 		return TRUE;
 	}