Added AR caching features to update and delete functions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 0f5d2b2..e379825 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -1098,7 +1098,7 @@
 	 * @return	object

 	 */

 	function insert($table = '', $set = NULL)

-	{

+	{	

 		if ( ! is_null($set))

 		{

 			$this->set($set);

@@ -1148,6 +1148,9 @@
 	 */

 	function update($table = '', $set = NULL, $where = NULL, $limit = NULL)

 	{

+		// Combine any cached components with the current statements

+		$this->_merge_cache();

+

 		if ( ! is_null($set))

 		{

 			$this->set($set);

@@ -1286,6 +1289,9 @@
 	 */

 	function delete($table = '', $where = '', $limit = NULL, $reset_data = TRUE)

 	{

+		// Combine any cached components with the current statements

+		$this->_merge_cache();

+

 		if ($table == '')

 		{

 			if ( ! isset($this->ar_from[0]))