|
@@ -133,6 +133,11 @@ abstract class Zend_Translate_Adapter {
|
|
|
$options = array('content' => $options);
|
|
$options = array('content' => $options);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (array_key_exists('cache', $options)) {
|
|
|
|
|
+ self::setCache($options['cache']);
|
|
|
|
|
+ unset($options['cache']);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (isset(self::$_cache)) {
|
|
if (isset(self::$_cache)) {
|
|
|
$id = 'Zend_Translate_' . $this->toString() . '_Options';
|
|
$id = 'Zend_Translate_' . $this->toString() . '_Options';
|
|
|
$result = self::$_cache->load($id);
|
|
$result = self::$_cache->load($id);
|
|
@@ -326,6 +331,11 @@ abstract class Zend_Translate_Adapter {
|
|
|
throw new Zend_Translate_Exception('Instance of Zend_Log expected for option log');
|
|
throw new Zend_Translate_Exception('Instance of Zend_Log expected for option log');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if ($key == 'cache') {
|
|
|
|
|
+ self::setCache($options);
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$this->_options[$key] = $option;
|
|
$this->_options[$key] = $option;
|
|
|
$change = true;
|
|
$change = true;
|
|
|
}
|
|
}
|