From a81a5effc439306807730002c19d8b4dda3c6f1d Mon Sep 17 00:00:00 2001 From: Tomaz Lovrec Date: Wed, 16 Oct 2013 11:29:57 +0200 Subject: Added possibility clear out the cached variables from the Loader. --- system/core/Loader.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'system') 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 @@ -470,6 +470,20 @@ class CI_Loader { // -------------------------------------------------------------------- + /** + * Clear Cached Variables + * + * Clears the cached variables. + * + * @return void + */ + public function clear_vars() + { + $this->_ci_cached_vars = array(); + } + + // -------------------------------------------------------------------- + /** * Get Variable * @@ -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 */ -- cgit v1.2.3-24-g4f1b