diff -r 1c2f13fd785c -r 7e0a67a20e74 web/rsln/Zend/Application/Resource/Cachemanager.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/rsln/Zend/Application/Resource/Cachemanager.php Fri Jan 21 13:42:03 2011 +0100 @@ -0,0 +1,73 @@ +getCacheManager(); + } + + /** + * Retrieve Zend_Cache_Manager instance + * + * @return Zend_Cache_Manager + */ + public function getCacheManager() + { + if (null === $this->_manager) { + $this->_manager = new Zend_Cache_Manager; + + $options = $this->getOptions(); + foreach ($options as $key => $value) { + if ($this->_manager->hasCacheTemplate($key)) { + $this->_manager->setTemplateOptions($key, $value); + } else { + $this->_manager->setCacheTemplate($key, $value); + } + } + } + + return $this->_manager; + } +}