diff options
author | Andrey Andreev <narf@devilix.net> | 2013-10-16 12:52:33 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-10-16 12:52:33 +0200 |
commit | d3782faa8cf8b402ce622ef8a98d9b79183b562d (patch) | |
tree | 86f5859f2f1daaf24039fc431f5e0a1fbf6915ac /system | |
parent | b367f7ba9302f00926f6b923ca1ca741b351ae96 (diff) | |
parent | 8bb20a1ff7217c9f5125db49916da8a9b6574c19 (diff) |
Merge pull request #2684 from slax0rr/develop
Added possibility clear out the cached variables from the Loader.
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Loader.php | 14 |
1 files changed, 14 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. |