Skip to content

Commit 9ef825f

Browse files
committed
docs: added notes libcurl
1 parent 3c0c9c1 commit 9ef825f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/system/HTTP/CURLRequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ public function testForceResolveIPUnknown(): void
12161216
/**
12171217
* @return array<string, array<string, bool|int|string>>
12181218
*
1219-
* @see https://linux.die.net/man/3/curl_easy_setopt
1219+
* @see https://curl.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html
12201220
*/
12211221
public static function provideDNSCacheTimeout(): iterable
12221222
{

user_guide_src/source/libraries/curlrequest.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,13 @@ dns_cache_timeout
256256

257257
.. versionadded:: 4.7.0
258258

259-
By default, CodeIgniter does not change the DNS Cache Timeout value (``120`` seconds). If you need to
259+
By default PHP, CodeIgniter does not change the DNS Cache Timeout value (``120`` seconds). If you need to
260260
modify this value, you can do so by passing an amount of time in seconds with the ``dns_cache_timeout`` option.
261261

262262
.. literalinclude:: curlrequest/037.php
263263

264+
.. note:: Based on documentation `libcurl <https://curl.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html>`__, you can set to zero to completely disable caching, or set to -1 to make the cached entries remain forever.
265+
264266
form_params
265267
===========
266268

0 commit comments

Comments
 (0)