Index: branches/5.2.x/core/kernel/application.php =================================================================== diff -u -N -r16761 -r16772 --- branches/5.2.x/core/kernel/application.php (.../application.php) (revision 16761) +++ branches/5.2.x/core/kernel/application.php (.../application.php) (revision 16772) @@ -1,6 +1,6 @@ cacheManager->setCache($key, $value, $expiration); + return $this->cacheManager->setCache($name, $value, $expiration); } /** * Stores new $value in cache with $key name (only if it's not there) * - * @param int $key key name to add to cache - * @param mixed $value value of cached record - * @param int $expiration when value expires (0 - doesn't expire) - * @return bool - * @access public + * @param string $name Key name to add to cache. + * @param mixed $value Value of cached record. + * @param integer|null $expiration When value expires (0 - doesn't expire). + * + * @return boolean */ - public function addCache($key, $value, $expiration = 0) + public function addCache($name, $value, $expiration = null) { - return $this->cacheManager->addCache($key, $value, $expiration); + return $this->cacheManager->addCache($name, $value, $expiration); } /** @@ -948,15 +948,15 @@ } /** - * Sets value to database cache + * Sets value to database cache. * - * @param string $name - * @param mixed $value - * @param int|bool $expiration + * @param string $name Key name to add to cache. + * @param mixed $value Value of cached record. + * @param integer|null $expiration When value expires (0 - doesn't expire). + * * @return void - * @access public */ - public function setDBCache($name, $value, $expiration = false) + public function setDBCache($name, $value, $expiration = null) { $this->cacheManager->setDBCache($name, $value, $expiration); }