From d9cbc6af73caef053e8ad7b49571921a4a08a1e7 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 16 Sep 2023 03:51:49 +0300 Subject: [PATCH] disable curl cache --- src/library/curl.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/library/curl.php b/src/library/curl.php index e713485..61926be 100644 --- a/src/library/curl.php +++ b/src/library/curl.php @@ -37,6 +37,7 @@ class Curl curl_setopt($this->_connection, CURLOPT_MAXREDIRS, $maxRedirects); } + curl_setopt($this->_connection, CURLOPT_FRESH_CONNECT, true); curl_setopt($this->_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($this->_connection, CURLOPT_CONNECTTIMEOUT, $connectTimeout); curl_setopt($this->_connection, CURLOPT_TIMEOUT, $connectTimeout);