Added possibility clear out the cached variables from the Loader.
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 0c16632..e5829ca 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.
@@ -1293,4 +1307,4 @@
}
/* End of file Loader.php */
-/* Location: ./system/core/Loader.php */
\ No newline at end of file
+/* Location: ./system/core/Loader.php */