diff --git a/docs/guide-fr/db-query-builder.md b/docs/guide-fr/db-query-builder.md index ecfdc9c8dd2..c953f54090e 100644 --- a/docs/guide-fr/db-query-builder.md +++ b/docs/guide-fr/db-query-builder.md @@ -771,7 +771,7 @@ foreach ($query->each() as $username => $user) { #### Limitations des requêtes par lots dans MySQL La mise en œuvre des requêtes par lots de MySQL s'appuie sur la bibliothèque du pilote PDO. Par défaut, les requêtes MySQL sont -[`mises en tampon`](https://www.php.net/manual/en/mysqlinfo.concepts.buffering.php). +[`mises en tampon`](https://www.php.net/manual/fr/mysqlinfo.concepts.buffering.php). Cela empêche d'utiliser le curseur pour obtenir les données, parce que cela n'empêche pas le jeu résultant complet d'être chargé dans la mémoire du client par le pilote. diff --git a/docs/guide-zh-CN/db-query-builder.md b/docs/guide-zh-CN/db-query-builder.md index f6a6a01915c..fae680ef5e8 100644 --- a/docs/guide-zh-CN/db-query-builder.md +++ b/docs/guide-zh-CN/db-query-builder.md @@ -771,7 +771,7 @@ foreach ($query->each() as $username => $user) { #### MySQL中批量查询的局限性(Limitations of batch query in MySQL) -MySQL 是通过 PDO 驱动库实现批量查询的。默认情况下,MySQL 查询是 [`带缓存的`](https://www.php.net/manual/en/mysqlinfo.concepts.buffering.php), +MySQL 是通过 PDO 驱动库实现批量查询的。默认情况下,MySQL 查询是 [`带缓存的`](https://www.php.net/manual/zh/mysqlinfo.concepts.buffering.php), 这违背了使用游标(cursor)获取数据的目的, 因为它不阻止驱动程序将整个结果集加载到客户端的内存中。 diff --git a/framework/caching/FileCache.php b/framework/caching/FileCache.php index 053d04f295c..aaa5049fef9 100644 --- a/framework/caching/FileCache.php +++ b/framework/caching/FileCache.php @@ -131,7 +131,7 @@ protected function getValue($key) * @param string $key the key identifying the value to be cached * @param string $value the value to be cached. Other types (If you have disabled [[serializer]]) unable to get is * correct in [[getValue()]]. - * @param int $duration the number of seconds in which the cached value will expire. 0 means never expire. + * @param int $duration the number of seconds in which the cached value will expire. Fewer than or equal to 0 means 1 year expiration time. * @return bool true if the value is successfully stored into cache, false otherwise */ protected function setValue($key, $value, $duration)