-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TemporaryFileCachedRemoteGetRequest to cache cURL request #414
Conversation
@schlessera Need your suggestions to add the test cases for |
Filesystem-based manipulations can be tested in an easy way with https://github.com/bovigo/vfsStream. |
DateTimeImmutable does not give micro seconds in PHP < 7.1. @see: https://www.php.net/manual/en/migration71.incompatible.php#migration71.incompatible.datetime-microseconds
@schlessera Updated the PR with test cases. Please take a look. |
tests/RemoteRequest/TemporaryFileCachedRemoteGetRequestTest.php
Outdated
Show resolved
Hide resolved
tests/RemoteRequest/TemporaryFileCachedRemoteGetRequestTest.php
Outdated
Show resolved
Hide resolved
tests/RemoteRequest/TemporaryFileCachedRemoteGetRequestTest.php
Outdated
Show resolved
Hide resolved
tests/RemoteRequest/TemporaryFileCachedRemoteGetRequestTest.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
This PR added a temporary file cache system to cache the remote request response. This will improve the performance issue described in issue #292.