@@ 689-695 (lines=7) @@ | ||
686 | // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection |
|
687 | // $cache is controlled by individual calls to separate Registry loader methods like load_class() |
|
688 | // $load_only is also controlled by individual calls to separate Registry loader methods like load_file() |
|
689 | if ($this->_cache_on && $cache && ! $load_only) { |
|
690 | // return object if it's already cached |
|
691 | $cached_class = $this->_get_cached_class($class_name, $addon); |
|
692 | if ($cached_class !== null) { |
|
693 | return $cached_class; |
|
694 | } |
|
695 | } |
|
696 | // instantiate the requested object |
|
697 | $class_obj = $this->_create_object($class_name, $arguments, $addon, $from_db); |
|
698 | if ($this->_cache_on && $cache) { |
|
@@ 755-761 (lines=7) @@ | ||
752 | // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection |
|
753 | // $cache is controlled by individual calls to separate Registry loader methods like load_class() |
|
754 | // $load_only is also controlled by individual calls to separate Registry loader methods like load_file() |
|
755 | if ($this->_cache_on && $cache && ! $load_only) { |
|
756 | // return object if it's already cached |
|
757 | $cached_class = $this->_get_cached_class($class_name, $class_prefix); |
|
758 | if ($cached_class !== null) { |
|
759 | return $cached_class; |
|
760 | } |
|
761 | } |
|
762 | // if the class doesn't already exist.. then we need to try and find the file and load it |
|
763 | if (! $class_exists) { |
|
764 | // get full path to file |