From d41752bec8644ebd09704325b27d074c1b4bd403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Somogyi=20M=C3=A1rton?= Date: Sun, 16 Oct 2022 12:14:01 +0200 Subject: [PATCH 1/2] 19265 fix file cache duration phpdoc (#19623) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * #19265 fix file cache duration phpdoc * #19265 fix file cache duration phpdoc * Update framework/caching/FileCache.php Co-authored-by: Bizley * #19265 remove CHANGELOG.md line * #19265 add CHANGELOG.md line Co-authored-by: Márton Somogyi Co-authored-by: Bizley --- framework/caching/FileCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From 48f6f7cc0ef0eaedaf1263f8210ebe71acadbbb9 Mon Sep 17 00:00:00 2001 From: Ihor Sychevskyi Date: Sun, 16 Oct 2022 13:14:37 +0300 Subject: [PATCH 2/2] update db-query-builder.md links (#19626) --- docs/guide-fr/db-query-builder.md | 2 +- docs/guide-zh-CN/db-query-builder.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)获取数据的目的, 因为它不阻止驱动程序将整个结果集加载到客户端的内存中。