> getCache method, and extend it?
Then the cache instance probably should be a singleton.
protected function _getCache()
{
if (self::$_cacheInstance === NULL) {
// self::$_cacheInstance = Zend_Registry::get('Zend_Cache');
self::$_cacheInstance =
Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('Cache');
}
return self::$_cacheInstance;
}
Best regards,
Andreas
没有评论:
发表评论