|
|
@@ -94,7 +94,7 @@ class Zend_Cache_Frontend_Function extends Zend_Cache_Core
|
|
|
return call_user_func_array($callback, $parameters);
|
|
|
}
|
|
|
|
|
|
- $id = $this->makeId($callback, $parameters);
|
|
|
+ $id = $this->_makeId($callback, $parameters);
|
|
|
if ( ($rs = $this->load($id)) && isset($rs[0], $rs[1])) {
|
|
|
// A cache is available
|
|
|
$output = $rs[0];
|
|
|
@@ -115,14 +115,24 @@ class Zend_Cache_Frontend_Function extends Zend_Cache_Core
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * ZF-9970
|
|
|
+ *
|
|
|
+ * @deprecated
|
|
|
+ */
|
|
|
+ private function _makeId($callback, array $args)
|
|
|
+ {
|
|
|
+ return $this->makeId($callback, $args);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Make a cache id from the function name and parameters
|
|
|
*
|
|
|
* @param callback $callback A valid callback
|
|
|
- * @param array $parameters Function parameters
|
|
|
+ * @param array $args Function parameters
|
|
|
* @throws Zend_Cache_Exception
|
|
|
* @return string Cache id
|
|
|
*/
|
|
|
- public function makeId($callback, array $args)
|
|
|
+ public function makeId($callback, array $args = array())
|
|
|
{
|
|
|
if (!is_callable($callback, true, $name)) {
|
|
|
Zend_Cache::throwException('Invalid callback');
|