summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorTomaz Lovrec <tomaz.lovrec@gmail.com>2013-10-16 11:29:57 +0200
committerTomaz Lovrec <tomaz.lovrec@gmail.com>2013-10-16 11:29:57 +0200
commita81a5effc439306807730002c19d8b4dda3c6f1d (patch)
tree649a441a003139dd03c595196609ba832b2b6faf /system/core/Loader.php
parentb367f7ba9302f00926f6b923ca1ca741b351ae96 (diff)
Added possibility clear out the cached variables from the Loader.
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 0c16632eb..e5829ca80 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -471,6 +471,20 @@ class CI_Loader {
// --------------------------------------------------------------------
/**
+ * 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 @@ class CI_Loader {
}
/* End of file Loader.php */
-/* Location: ./system/core/Loader.php */ \ No newline at end of file
+/* Location: ./system/core/Loader.php */