@@ 669-675 (lines=7) @@ | ||
666 | // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection |
|
667 | // $cache is controlled by individual calls to separate Registry loader methods like load_class() |
|
668 | // $load_only is also controlled by individual calls to separate Registry loader methods like load_file() |
|
669 | if ($this->_cache_on && $cache && ! $load_only) { |
|
670 | // return object if it's already cached |
|
671 | $cached_class = $this->_get_cached_class($class_name, $class_prefix); |
|
672 | if ($cached_class !== null) { |
|
673 | return $cached_class; |
|
674 | } |
|
675 | } |
|
676 | // if the class doesn't already exist.. then we need to try and find the file and load it |
|
677 | if ( ! $class_exists) { |
|
678 | // get full path to file |
|
@@ 605-611 (lines=7) @@ | ||
602 | // $this->_cache_on is toggled during the recursive loading that can occur with dependency injection |
|
603 | // $cache is controlled by individual calls to separate Registry loader methods like load_class() |
|
604 | // $load_only is also controlled by individual calls to separate Registry loader methods like load_file() |
|
605 | if ($this->_cache_on && $cache && ! $load_only) { |
|
606 | // return object if it's already cached |
|
607 | $cached_class = $this->_get_cached_class($class_name, $addon); |
|
608 | if ($cached_class !== null) { |
|
609 | return $cached_class; |
|
610 | } |
|
611 | } |
|
612 | // instantiate the requested object |
|
613 | $class_obj = $this->_create_object($class_name, $arguments, $addon, $from_db); |
|
614 | if ($this->_cache_on && $cache) { |