summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-10-16 12:52:33 +0200
committerAndrey Andreev <narf@devilix.net>2013-10-16 12:52:33 +0200
commitd3782faa8cf8b402ce622ef8a98d9b79183b562d (patch)
tree86f5859f2f1daaf24039fc431f5e0a1fbf6915ac
parentb367f7ba9302f00926f6b923ca1ca741b351ae96 (diff)
parent8bb20a1ff7217c9f5125db49916da8a9b6574c19 (diff)
Merge pull request #2684 from slax0rr/develop
Added possibility clear out the cached variables from the Loader.
-rw-r--r--system/core/Loader.php14
-rw-r--r--user_guide_src/source/changelog.rst1
2 files changed, 15 insertions, 0 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 0c16632eb..70c1e4154 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.
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst
index a66fb265f..a76fcd784 100644
--- a/user_guide_src/source/changelog.rst
+++ b/user_guide_src/source/changelog.rst
@@ -57,6 +57,7 @@ Release Date: Not Released
- 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