Merge pull request #2684 from slax0rr/develop

Added possibility clear out the cached variables from the Loader.
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 0c16632..70c1e41 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -471,6 +471,20 @@
 	// --------------------------------------------------------------------
 
 	/**
+	 * Clear Cached Variables
+	 * 
+	 * Clears the cached variables.
+	 * 
+	 * @return  void
+	 */
+	public function clear_vars()
+	{
+		$this->_ci_cached_vars = array();
+	}
+	
+	// --------------------------------------------------------------------
+
+	/**
 	 * Get Variable
 	 *
 	 * Check if a variable is set and retrieve it.
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index a66fb26..a76fcd7 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -57,6 +57,7 @@
    -  Removed *cheatsheets* and *quick_reference* PDFs from the documentation.
    -  Added availability checks where usage of dangerous functions like ``eval()`` and ``exec()`` is required.
    -  Added support for changing the file extension of log files using ``$config['log_file_extension']``.
+   -  Added possibility clear out the cached variables from the Loader.
 
 -  Helpers