Josiah Ovye Yahaya - 2020-03-10 08:03:50 - In reply to message 1 from nourmajed
The class supports request caching. How it works is; when you enable cache on the options passed to the class constructor, it will cache the first request for about 1200 seconds which is around 20 minutes then returns contents from the cache for subsequent requests for that URL.
Here is an example of enabling caching:
$curler = new Curler(['cache' => true]);
Then send your request e.g:
$response = $curler->get('https://example.com');
Josiah Ovye Yahaya - 2020-03-10 09:41:16 - In reply to message 3 from nourmajed
If I understand you correctly, my answer is:
Caching is done per a request endpoint. Meaning, you can have some endpoints cached and some not cached. However, if this isn't what you're asking, kindly give more clarity so I can provide the right answer.